Skip to content

Fix backtrace when DISPLAY is unset

Tobias Frost requested to merge fix_unset_DISPLAY into master

python3 ./toetally.py Traceback (most recent call last): File "./toetally.py", line 186, in main() File "./toetally.py", line 102, in main display() File "./toetally.py", line 42, in display if os.environ['DISPLAY'] == "": File "/usr/lib/python3.5/os.py", line 725, in getitem raise KeyError(key) from None KeyError: 'DISPLAY'

Merge request reports

Loading