]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Remove undefined status variable from exception 168/head
authorPetr Menšík <pemensik@redhat.com>
Fri, 1 Apr 2022 15:54:53 +0000 (17:54 +0200)
committerPetr Menšík <pemensik@redhat.com>
Fri, 1 Apr 2022 15:54:53 +0000 (17:54 +0200)
Triggered by:
ldns.ldns_rdf.new_frm_str("::1", ldns.LDNS_RDF_TYPE_A)

contrib/python/ldns_rdf.i

index dbbf606c19c1728e5d22f4e4ed4adef2777b6873..3d1d261b19fdbcd7e9c7d6027dc07b1d7cf68496 100644 (file)
@@ -315,8 +315,7 @@ specified in the (16-bit) type field with a value from ldns_rdf_type."
             """
             rr = _ldns.ldns_rdf_new_frm_str(rr_type, string)
             if (not rr) and raiseException:
-                raise Exception("Can't create query packet, " +
-                    "error: %d" % status)
+                raise Exception("Can't create query packet"))
             return rr
 
         #