From 002e2e4613fd10b600ccde4d88b981081976083a Mon Sep 17 00:00:00 2001 From: Ruakij Date: Mon, 2 Aug 2021 14:22:52 +0200 Subject: [PATCH] Moved finished-msg --- daemon.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 5a27c99..3528eab 100755 --- a/daemon.py +++ b/daemon.py @@ -135,11 +135,13 @@ def updateNsData(zone): adaptFileForRequire(zone, dumpFile) if dnscontrolPush(zone) != 0: raise Exception("Pushing data failed!") + + log.info(f'{adaptedZone} |\tFinished') except: log.error(f'{adaptedZone} |\t{sys.exc_info()}') log.error(f'{adaptedZone} |\tUpdating NS-Data failed!') - log.info(f'{adaptedZone} |\tFinished') + def adaptZoneName(zone): if config['zone']['public-suffix'] != "" and zone.endswith(config['zone']['public-suffix']):