Skip to content

Commit 5b7f09f

Browse files
author
James William Pye
committed
Revert widening the exception class.
1 parent cf8e9ec commit 5b7f09f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

postgresql/python/socket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __call__(self, timeout = None):
6666
s.settimeout(float(timeout) if timeout is not None else None)
6767
s.connect(self.socket_connect)
6868
s.settimeout(None)
69-
except:
69+
except Exception:
7070
s.close()
7171
raise
7272
return s

0 commit comments

Comments
 (0)