Skip to content

Commit f971c8c

Browse files
bpo-40121: Fix exception type in test (GH-19267)
(cherry picked from commit 3ef4a7e) Co-authored-by: Steve Dower <[email protected]>
1 parent 6acafee commit f971c8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/audit-tests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def hook(event, args):
343343
try:
344344
# Don't care if this fails, we just want the audit message
345345
sock.bind(('127.0.0.1', 8080))
346-
except error:
346+
except Exception:
347347
pass
348348
finally:
349349
sock.close()

0 commit comments

Comments
 (0)