From 1d45ab668285a80dd5ad13ceb65a81ff21380f80 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Fri, 1 Apr 2022 17:54:53 +0200 Subject: [PATCH] Remove undefined status variable from exception Triggered by: ldns.ldns_rdf.new_frm_str("::1", ldns.LDNS_RDF_TYPE_A) --- contrib/python/ldns_rdf.i | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 # -- 2.47.3