mirror of https://github.com/dbcli/pgcli
Merge pull request #1171 from dbcli/bugfix/no-new-line
bugfix: don't echo a newline when output is empty.
This commit is contained in:
commit
64c0b3553d
|
@ -679,7 +679,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