nixos/gdm: don't raise an Exception in set-session script

https://github.com/NixOS/nixpkgs/pull/73378#discussion_r349825541
This commit is contained in:
worldofpeace 2019-11-22 18:05:21 -05:00
parent be5dcb4606
commit 519448d2e3

View file

@ -78,7 +78,8 @@ def main():
)
user.set_x_session(session)
else:
raise Exception(f"Couldn't figure out session type for {session_file}")
logging.error(f"Couldn't figure out session type for {session_file}")
sys.exit(1)
if __name__ == "__main__":