From: Petr Menšík Date: Fri, 1 Apr 2022 15:54:53 +0000 (+0200) Subject: Remove undefined status variable from exception X-Git-Tag: 1.8.2-rc.1~18^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F168%2Fhead;p=thirdparty%2Fldns.git Remove undefined status variable from exception Triggered by: ldns.ldns_rdf.new_frm_str("::1", ldns.LDNS_RDF_TYPE_A) --- diff --git a/contrib/python/ldns_rdf.i b/contrib/python/ldns_rdf.i index dbbf606c..3d1d261b 100644 --- a/contrib/python/ldns_rdf.i +++ b/contrib/python/ldns_rdf.i @@ -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 #