Don't assume 'User' exists in autologin section.
This commit is contained in:
parent
64ca3857c3
commit
5392615053
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user