1
0
Fork 0

Fix bug introduced in #1102. (#1178)

This commit is contained in:
Irina Truong 2020-05-07 16:41:23 -07:00 committed by GitHub
parent bcb0c8bce7
commit 901ef31fd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1075,7 +1075,7 @@ class PGCli(object):
def echo_via_pager(self, text, color=None):
if self.pgspecial.pager_config == PAGER_OFF or self.watch_command:
click.echo(text, color=color)
elif "pspg" in os.environ["PAGER"] and self.table_format == "csv":
elif "pspg" in os.environ.get("PAGER", "") and self.table_format == "csv":
click.echo_via_pager(text, color)
elif self.pgspecial.pager_config == PAGER_LONG_OUTPUT:
lines = text.split("\n")