Skip to content

Commit

Permalink
Merge pull request #384 from RedBearAK/dev_beta
Browse files Browse the repository at this point in the history
Handle unknown session types differently
  • Loading branch information
RedBearAK authored Aug 21, 2024
2 parents de62352 + b7e4c4b commit 8a90493
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ def get_env_info():
if isinstance(SESSION_TYPE, str):
SESSION_TYPE = SESSION_TYPE.casefold()

if SESSION_TYPE not in ['x11', 'wayland']:
raise EnvironmentError(f'\n\nENV: Unknown session type: {SESSION_TYPE}.\n')
if SESSION_TYPE not in ['x11', 'wayland', 'tty']:
error(f'\n\nENV: Unknown session type: {SESSION_TYPE}.\n')

env_info_dct['SESSION_TYPE'] = SESSION_TYPE

Expand Down

0 comments on commit 8a90493

Please sign in to comment.