]> wagner.pp.ru Git - oss/dyngo.git/commitdiff
Fixed handling of situation where address for some network is not found master
authorVictor Wagner <vitus@wagner.pp.ru>
Thu, 12 Sep 2019 07:01:27 +0000 (10:01 +0300)
committerVictor Wagner <vitus@wagner.pp.ru>
Thu, 12 Sep 2019 07:01:27 +0000 (10:01 +0300)
dyngo

diff --git a/dyngo b/dyngo
index 0b02240be9fdda1af23ba51195f9ddf1ac525402..09e09c010e2b55623a7e9c4e0ed0b1a73730d352 100755 (executable)
--- a/dyngo
+++ b/dyngo
@@ -80,7 +80,8 @@ def check_for_update():
                 break     
         if not found:
             logging.info("Address for net %s no more found",name)
                 break     
         if not found:
             logging.info("Address for net %s no more found",name)
-            del data[name]
+            if name in database:
+                del database[name]
 
 config=ConfigParser()
 config['dyngo']={'interval':'60','database':'/var/lib/dyngo/dyngo.db',
 
 config=ConfigParser()
 config['dyngo']={'interval':'60','database':'/var/lib/dyngo/dyngo.db',