diff options
author | Amjith Ramanujam <amjith.r@gmail.com> | 2018-07-10 22:51:38 -0700 |
---|---|---|
committer | Amjith Ramanujam <amjith.r@gmail.com> | 2018-07-10 22:51:38 -0700 |
commit | 6eedf1b6e35d4d3d74e15df4d990c2fd34bef981 (patch) | |
tree | e182cc10e1c30fd8124a2dbfff72ef1bf520e595 /pgcli | |
parent | d5b0b6527bb7d962de7a7494b8335008e15cf23d (diff) |
Catch the ^D keybinding using EOFError exception.
Diffstat (limited to 'pgcli')
-rw-r--r-- | pgcli/main.py | 2 |
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!') |