diff options
| author | Brian Wellington <bwelling@xbill.org> | 2020-05-19 10:26:36 -0700 |
|---|---|---|
| committer | Brian Wellington <bwelling@xbill.org> | 2020-05-19 10:26:36 -0700 |
| commit | c28b04c4979caaaa117825191092ae3bc537e16d (patch) | |
| tree | 0a13faa33f9515fe6dde8587958b03a759d3fc8f | |
| parent | a7907fba035ab20f35883d27b1a028f3e9f70c01 (diff) | |
| download | dnspython-c28b04c4979caaaa117825191092ae3bc537e16d.tar.gz | |
Fix bare except.
| -rw-r--r-- | dns/opcode.py | 2 |
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 |
