Commit abaf2fac authored by Jelte Jansen's avatar Jelte Jansen
Browse files

check if configmanager object was created before trying to call write_config()...

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
parent e87c27c3
......@@ -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()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment