Issue 16646 (ftplib): deliberately use intermediate variable after catching exception
diff --git a/Lib/ftplib.py b/Lib/ftplib.py
index 94237ca..a0f0f90 100644
--- a/Lib/ftplib.py
+++ b/Lib/ftplib.py
@@ -291,7 +291,8 @@
             try:
                 sock = socket.socket(af, socktype, proto)
                 sock.bind(sa)
-            except socket.error as err:
+            except socket.error as _:
+                err = _
                 if sock:
                     sock.close()
                 sock = None