summaryrefslogtreecommitdiffstats
path: root/pgcli
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith.r@gmail.com>2018-07-10 22:51:38 -0700
committerAmjith Ramanujam <amjith.r@gmail.com>2018-07-10 22:51:38 -0700
commit6eedf1b6e35d4d3d74e15df4d990c2fd34bef981 (patch)
treee182cc10e1c30fd8124a2dbfff72ef1bf520e595 /pgcli
parentd5b0b6527bb7d962de7a7494b8335008e15cf23d (diff)
Catch the ^D keybinding using EOFError exception.
Diffstat (limited to 'pgcli')
-rw-r--r--pgcli/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pgcli/main.py b/pgcli/main.py
index 174cf688..e5bc39e4 100644
--- a/pgcli/main.py
+++ b/pgcli/main.py
@@ -637,7 +637,7 @@ class PGCli(object):
self.query_history.append(query)
- except PgCliQuitError:
+ except (PgCliQuitError, EOFError):
if not self.less_chatty:
print ('Goodbye!')