dbcli / mssql-cli

A command-line client for SQL Server with auto-completion and syntax highlighting
BSD 3-Clause "New" or "Revised" License
1.35k stars 192 forks source link

Fixed bug that caused interactive mode to crash #432

Closed ellbosch closed 4 years ago

ellbosch commented 4 years ago

Our recent less-autodetect PR introduced a bug that's fixed in this PR. In environments where less is not installed, and where no alternative is determined, we were setting the PAGER environment variable to None Python type. Because the shell doesn't know what a None is, it crashes.