Parcourir la source

[1414] exception object itself isn't used

Jelte Jansen il y a 13 ans
Parent
commit
740d33cd94
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/bin/zonemgr/zonemgr.py.in

+ 1 - 1
src/bin/zonemgr/zonemgr.py.in

@@ -490,7 +490,7 @@ class ZonemgrRefresh:
                     # Convert rr_class to and from RRClass to check its value
                     try:
                         name_class = (name, isc.dns.RRClass(rr_class).to_text())
-                    except isc.dns.InvalidRRClass as irce:
+                    except isc.dns.InvalidRRClass:
                         raise ZonemgrException("Bad RR class '" +
                                                rr_class +
                                                "' for zone " + name)