diff options
| author | Bob Halley <halley@dnspython.org> | 2020-06-17 12:03:03 -0700 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2020-06-17 12:04:13 -0700 |
| commit | 54ae9aaa727c809d2d0650ec4d3086617e33122b (patch) | |
| tree | 873162b019785db42bbcd3ed69f84f3a713dba72 /dns | |
| parent | 7ed1648b8427e77b1f21d1896ca8aaff11598e74 (diff) | |
| download | dnspython-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.py | 7 |
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) |
