diff options
author | darikg <darikg@users.noreply.github.com> | 2015-08-02 10:29:42 -0400 |
---|---|---|
committer | darikg <darikg@users.noreply.github.com> | 2015-08-02 10:29:42 -0400 |
commit | 791b7710989b58832299b387cbe15bce776dd04d (patch) | |
tree | b591cb54dc55bf8f836350a754336c3371f6d6b4 | |
parent | 1f147f5e7adf14daea1f59d2ebc88e7539c7e4a7 (diff) | |
parent | c31f092e6fd79a7fc5d4c6655a0a60a9518f7b75 (diff) |
Merge pull request #290 from dbcli/amjith/click-bump
Bump up click version to address #288
-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', |