From 5392615053b90796d3d28e6b2c55a2bfd4390bce Mon Sep 17 00:00:00 2001 From: Bernhard Landauer Date: Sat, 21 Jan 2017 02:53:43 +0100 Subject: [PATCH] Don't assume 'User' exists in autologin section. --- src/modules/displaymanager/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/displaymanager/main.py b/src/modules/displaymanager/main.py index c19d503b5..e2bfe2d2f 100644 --- a/src/modules/displaymanager/main.py +++ b/src/modules/displaymanager/main.py @@ -267,7 +267,7 @@ def set_autologin(username, displaymanagers, default_desktop_environment, root_m if do_autologin: autologin_section['User'] = username - else: + elif 'User' in autologin_section: del autologin_section['User'] if default_desktop_environment is not None: