]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
remove unneeded exception catching from rhs setting in $GENERATE code (cut-and-paste...
authorBob Halley <halley@dnspython.org>
Wed, 17 Jun 2020 19:03:03 +0000 (12:03 -0700)
committerBob Halley <halley@dnspython.org>
Wed, 17 Jun 2020 19:04:13 +0000 (12:04 -0700)
dns/zone.py

index 741d24c3692abdee1c6cc9cd2796061baefcbb75..13d121be8b91aedfe44a5d28c4e04eda86f496a8 100644 (file)
@@ -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)