From d9cc6a4159146d586fd437d6db7b6bbac07d14ae Mon Sep 17 00:00:00 2001 From: Victor Wagner Date: Thu, 12 Sep 2019 10:01:27 +0300 Subject: [PATCH] Fixed handling of situation where address for some network is not found --- dyngo | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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', -- 2.39.5