From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 9 Nov 2025 03:17:17 +0000 (-0500) Subject: Fix try/except/as notation X-Git-Tag: rec-5.4.0-alpha1~117^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42366651060731e8273a431152dd6d17b8bb906d;p=thirdparty%2Fpdns.git Fix try/except/as notation Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- diff --git a/regression-tests.recursor-dnssec/test_RPZ.py b/regression-tests.recursor-dnssec/test_RPZ.py index ed8e89decc..aab27d8830 100644 --- a/regression-tests.recursor-dnssec/test_RPZ.py +++ b/regression-tests.recursor-dnssec/test_RPZ.py @@ -434,7 +434,7 @@ e 3600 IN A 192.0.2.42 soa = zone.get_soa() if soa.serial == serial and soa.mname == dns.name.from_text('ns.zone.rpz.'): return # we found what we expected - except e as FileNotFoundError: + except FileNotFoundError as e: pass attempts = attempts + incr time.sleep(incr)