]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix try/except/as notation 16459/head
authorJosh Soref <2119212+jsoref@users.noreply.github.com>
Sun, 9 Nov 2025 03:17:17 +0000 (22:17 -0500)
committerJosh Soref <2119212+jsoref@users.noreply.github.com>
Sun, 9 Nov 2025 03:17:17 +0000 (22:17 -0500)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
regression-tests.recursor-dnssec/test_RPZ.py

index ed8e89decc9ec3d6fd94a8bd8ac25b60f086e2e2..aab27d88307f54daf132c504008adb081f9cddec 100644 (file)
@@ -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)