summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Wellington <bwelling@xbill.org>2020-05-19 10:26:36 -0700
committerBrian Wellington <bwelling@xbill.org>2020-05-19 10:26:36 -0700
commitc28b04c4979caaaa117825191092ae3bc537e16d (patch)
tree0a13faa33f9515fe6dde8587958b03a759d3fc8f
parenta7907fba035ab20f35883d27b1a028f3e9f70c01 (diff)
downloaddnspython-c28b04c4979caaaa117825191092ae3bc537e16d.tar.gz
Fix bare except.
-rw-r--r--dns/opcode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/opcode.py b/dns/opcode.py
index 17f5589..d81d255 100644
--- a/dns/opcode.py
+++ b/dns/opcode.py
@@ -59,7 +59,7 @@ def from_text(text):
return value
try:
return Opcode[text.upper()]
- except:
+ except KeyError:
raise UnknownOpcode