From: Bob Halley Date: Wed, 17 Jun 2020 19:03:03 +0000 (-0700) Subject: remove unneeded exception catching from rhs setting in $GENERATE code (cut-and-paste... X-Git-Tag: v2.0.0rc1~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54ae9aaa727c809d2d0650ec4d3086617e33122b;p=thirdparty%2Fdnspython.git remove unneeded exception catching from rhs setting in $GENERATE code (cut-and-paste issue) --- diff --git a/dns/zone.py b/dns/zone.py index 741d24c3..13d121be 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)