mirror of
https://github.com/dbcli/pgcli.git
synced 2024-10-04 09:17:08 +03:00
bugfix: don't echo a newline when output is empty.
This commit is contained in:
parent
005fd2fcee
commit
94718efc35
@ -660,7 +660,8 @@ class PGCli(object):
|
||||
except IOError as e:
|
||||
click.secho(str(e), err=True, fg="red")
|
||||
else:
|
||||
self.echo_via_pager("\n".join(output))
|
||||
if output:
|
||||
self.echo_via_pager("\n".join(output))
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user