1
0
Fork 0

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:
Amjith Ramanujam 2020-04-18 19:06:25 -07:00 committed by GitHub
commit 64c0b3553d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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