]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Fix bare except.
authorBrian Wellington <bwelling@xbill.org>
Tue, 19 May 2020 17:26:36 +0000 (10:26 -0700)
committerBrian Wellington <bwelling@xbill.org>
Tue, 19 May 2020 17:26:36 +0000 (10:26 -0700)
dns/opcode.py

index 17f558977ea4ca5d560f51d6977ca69b01491e4c..d81d25588324c87dc7061d9ec0b17f3ac17aff66 100644 (file)
@@ -59,7 +59,7 @@ def from_text(text):
                 return value
     try:
         return Opcode[text.upper()]
-    except:
+    except KeyError:
         raise UnknownOpcode