]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Improve python style 12912/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 14 Jun 2023 09:12:44 +0000 (11:12 +0200)
committerGitHub <noreply@github.com>
Wed, 14 Jun 2023 09:12:44 +0000 (11:12 +0200)
Co-authored-by: Chris Hofstaedtler <zeha@users.noreply.github.com>
regression-tests.recursor-dnssec/test_RecDnstap.py

index 8bd2845c45f32e7572abbac03edf796e705ea70c..3f835a30dc60c5c76b2ba3077e73055dd01f1b3f 100644 (file)
@@ -186,7 +186,7 @@ class TestRecursorDNSTap(RecursorTest):
                 fstrm_handle_bidir_connection(conn, lambda data: \
                 param.queue.put(data, True, timeout=2.0))
             except socket.error as e:
-                if e.errno == errno.EBADF or e.errno == errno.EPIPE:
+                if e.errno in (errno.EBADF, errno.EPIPE):
                     break
                 sys.stderr.write("Unexpected socket error %s\n" % str(e))
                 sys.exit(1)