Skip to content

Commit 2043abe

Browse files
author
James William Pye
committed
Add unreachable code to fatal codes.
1 parent f979b76 commit 2043abe

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

postgresql/python/socket.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class SocketFactory(object):
2626
errno.ECONNRESET : 'server explicitly closed the connection',
2727
errno.EPIPE : 'broken connection detected on send',
2828
errno.ECONNREFUSED : 'server refused connection',
29+
errno.EHOSTUNREACH : 'server is not reachable',
2930
}
3031
timeout_exception = socket.timeout
3132
fatal_exception = socket.error

0 commit comments

Comments
 (0)