gnunet-svn
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]