From: Victor Wagner <vitus@wagner.pp.ru>
Date: Thu, 12 Sep 2019 07:01:27 +0000 (+0300)
Subject: Fixed handling of situation where address for some network is not found
X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;p=oss%2Fdyngo.git

Fixed handling of situation where address for some network is not found
---

diff --git a/dyngo b/dyngo
index 0b02240..09e09c0 100755
--- 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)
-            del data[name]
+            if name in database:
+                del database[name]
 
 config=ConfigParser()
 config['dyngo']={'interval':'60','database':'/var/lib/dyngo/dyngo.db',