Browse Source

check if configmanager object was created before trying to call write_config() on it when shutting down after an error (i.e. msgq not running)


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1299 e5f2f494-b856-4b98-b285-d166d9295462
Jelte Jansen 15 years ago
parent
commit
abaf2fac09
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/bin/cfgmgr/b10-cfgmgr.py.in

+ 2 - 1
src/bin/cfgmgr/b10-cfgmgr.py.in

@@ -36,4 +36,5 @@ if __name__ == "__main__":
               "is the command channel daemon running?")
     except KeyboardInterrupt as kie:
         print("Got ctrl-c, exit")
-    cm.write_config()
+    if cm:
+        cm.write_config()