[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [ascension] 03/09: fixed exception not catching all
From: |
gnunet |
Subject: |
[GNUnet-SVN] [ascension] 03/09: fixed exception not catching all |
Date: |
Fri, 10 May 2019 15:24:23 +0200 |
This is an automated email from the git hooks/post-receive script.
rexxnor pushed a commit to branch master
in repository ascension.
commit 8c52d3b3235a6862fdd4675087871c6a7f8fed9c
Author: rexxnor <address@hidden>
AuthorDate: Thu May 9 23:41:12 2019 +0200
fixed exception not catching all
---
ascension/ascension.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/ascension/ascension.py b/ascension/ascension.py
index 2acd6b4..56d76b7 100644
--- a/ascension/ascension.py
+++ b/ascension/ascension.py
@@ -156,7 +156,7 @@ class Ascender():
logging.critical("Domain '%s' does not allow xfr requests.",
domain)
return None
- except:
+ except Exception:
logging.error("Unexpected error while transfering domain '%s'",
domain)
return None
@@ -730,9 +730,10 @@ def main():
ascender.transferns)
if dryrun:
- if dns_zone_serial:
+ if not dns_zone_serial:
+ return 1
+ else:
return 0
- return 1
if not dns_zone_serial:
logging.error("Could not get DNS zone serial")
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [ascension] branch master updated (7e1e8df -> 5dc85dc), gnunet, 2019/05/10
- [GNUnet-SVN] [ascension] 01/09: fixed a double implemented issue, gnunet, 2019/05/10
- [GNUnet-SVN] [ascension] 03/09: fixed exception not catching all,
gnunet <=
- [GNUnet-SVN] [ascension] 02/09: updated config file for ascension-bind, gnunet, 2019/05/10
- [GNUnet-SVN] [ascension] 07/09: fixed up gitlabci, gnunet, 2019/05/10
- [GNUnet-SVN] [ascension] 09/09: updated gitlabci to include correct postinst and prerm files, gnunet, 2019/05/10
- [GNUnet-SVN] [ascension] 04/09: bugfixes, improved config file, gnunet, 2019/05/10
- [GNUnet-SVN] [ascension] 06/09: first working version of ascension-bind, gnunet, 2019/05/10
- [GNUnet-SVN] [ascension] 08/09: make linter and lintian happier, fixed logic errors, gnunet, 2019/05/10
- [GNUnet-SVN] [ascension] 05/09: ascension dry-run fixes, packaging, ascension-bind, gnunet, 2019/05/10