From a40a361238b1c471a869796579ae9ae59f899f28 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Wed, 1 Apr 2020 00:31:12 +0100 Subject: [PATCH] bpo-40121: Fix exception type in test --- Lib/test/audit-tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/audit-tests.py b/Lib/test/audit-tests.py index dda52a5a518f6ad..b90c4b8f75794d3 100644 --- a/Lib/test/audit-tests.py +++ b/Lib/test/audit-tests.py @@ -343,7 +343,7 @@ def hook(event, args): try: # Don't care if this fails, we just want the audit message sock.bind(('127.0.0.1', 8080)) - except error: + except Exception: pass finally: sock.close()