[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:
Adriaan de Groot 2018-08-20 06:17:05 -04:00
parent 08d41f745b
commit c3cef4d919

View File

@ -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"]