summaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2020-06-17 12:03:03 -0700
committerBob Halley <halley@dnspython.org>2020-06-17 12:04:13 -0700
commit54ae9aaa727c809d2d0650ec4d3086617e33122b (patch)
tree873162b019785db42bbcd3ed69f84f3a713dba72 /dns
parent7ed1648b8427e77b1f21d1896ca8aaff11598e74 (diff)
downloaddnspython-54ae9aaa727c809d2d0650ec4d3086617e33122b.tar.gz
remove unneeded exception catching from rhs setting in $GENERATE code (cut-and-paste issue)
Diffstat (limited to 'dns')
-rw-r--r--dns/zone.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/dns/zone.py b/dns/zone.py
index 741d24c..13d121b 100644
--- a/dns/zone.py
+++ b/dns/zone.py
@@ -897,11 +897,8 @@ class _MasterReader:
raise dns.exception.SyntaxError("unknown rdatatype '%s'" %
token.value)
- # lhs (required)
- try:
- rhs = token.value
- except Exception:
- raise dns.exception.SyntaxError
+ # rhs (required)
+ rhs = token.value
lmod, lsign, loffset, lwidth, lbase = self._parse_modify(lhs)
rmod, rsign, roffset, rwidth, rbase = self._parse_modify(rhs)