[displaymanager] Avoid unassigned variable
If displaymanagers is not set in the job config or globally, it wasn't set at all, leading to a runtime error. Set to None, so that the regular error message will be triggered. FIXES #1002
This commit is contained in:
parent
08d41f745b
commit
c3cef4d919
@ -382,6 +382,7 @@ def run():
|
||||
If a displaymanager is in the list but not installed, a debugging message
|
||||
is printed and the entry ignored.
|
||||
"""
|
||||
displaymanagers = None
|
||||
if "displaymanagers" in libcalamares.job.configuration:
|
||||
displaymanagers = libcalamares.job.configuration["displaymanagers"]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user