Skip to content

Commit 4a93082

Browse files
author
Elliot Boschwitz
authored
Fixed bug that caused interactive mode to crash (#432)
1 parent 7772bfe commit 4a93082

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mssqlcli/mssql_cli.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ def set_default_pager(self, config):
119119
if not os.environ.get('LESS'):
120120
os.environ['LESS'] = '-SRXF'
121121

122-
os.environ['PAGER'] = default_pager
122+
if default_pager is not None:
123+
os.environ['PAGER'] = default_pager
123124
return default_pager
124125

125126
def __init__(self, options):

0 commit comments

Comments
 (0)