chiark / gitweb /
config: fix client config (no SERVER)
[hippotat.git] / hippotatd
index cb86c2b..fe10eec 100755 (executable)
--- a/hippotatd
+++ b/hippotatd
@@ -296,7 +296,8 @@ def process_cfg(_opts, putative_servers, putative_clients):
 
   global c
   c = ConfigResults()
-  c.server = cfg.get('SERVER','server')
+  try: c.server = cfg.get('SERVER','server')
+  except NoOptionError: c.server = 'SERVER'
 
   cfg_process_common(c, c.server)
   cfg_process_saddrs(c, c.server)