summaryrefslogtreecommitdiff
path: root/Lib/socket.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/socket.py')
-rwxr-xr-xLib/socket.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/socket.py b/Lib/socket.py
index 97362d92f6..28d9c89d60 100755
--- a/Lib/socket.py
+++ b/Lib/socket.py
@@ -851,7 +851,7 @@ def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT,
raise ExceptionGroup("create_connection failed", exceptions)
finally:
# Break explicitly a reference cycle
- exceptions = None
+ exceptions.clear()
else:
raise error("getaddrinfo returns an empty list")