diff options
-rwxr-xr-x | pgcli/main.py | 5 | ||||
-rw-r--r-- | setup.py | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/pgcli/main.py b/pgcli/main.py index 29dddddd..1325a53a 100755 --- a/pgcli/main.py +++ b/pgcli/main.py @@ -346,7 +346,10 @@ class PGCli(object): logger.error("traceback: %r", traceback.format_exc()) click.secho(str(e), err=True, fg='red') else: - click.echo_via_pager('\n'.join(output)) + try: + click.echo_via_pager('\n'.join(output)) + except KeyboardInterrupt: + pass if self.pgspecial.timing_enabled: print('Command Time: %0.03fs' % duration) print('Format Time: %0.03fs' % total) @@ -23,7 +23,7 @@ setup( description=description, long_description=open('README.rst').read(), install_requires=[ - 'click >= 3.2', + 'click >= 4.1', 'Pygments >= 2.0', # Pygments has to be Capitalcased. WTF? 'prompt_toolkit==0.42', 'psycopg2 >= 2.5.4', |