summaryrefslogtreecommitdiffstats
path: root/pgcli
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith.r@gmail.com>2019-03-16 13:36:32 -0700
committerAmjith Ramanujam <amjith.r@gmail.com>2019-03-16 13:36:32 -0700
commit9df9c222d06a43a94f21e04556e4cf48bf92f3a2 (patch)
tree1f2dc6c7b074e3452d2177fad72ba2ec810fe3c0 /pgcli
parentf4ebcd23837af7bd61259e4cb6f2297a2b570ec9 (diff)
Remove the unnecessary try/except.
Diffstat (limited to 'pgcli')
-rw-r--r--pgcli/pgexecute.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/pgcli/pgexecute.py b/pgcli/pgexecute.py
index 484ad707..1188dbae 100644
--- a/pgcli/pgexecute.py
+++ b/pgcli/pgexecute.py
@@ -54,9 +54,6 @@ def _wait_select(conn):
errno = e.args[0]
if errno != 4:
raise
- except OSError, e:
- if e.errno != errno.EINTR:
- raise
# When running a query, make pressing CTRL+C raise a KeyboardInterrupt
# See http://initd.org/psycopg/articles/2014/07/20/cancelling-postgresql-statements-python/