[displaymanager] Fix Python errors

Apparently nobody ever hit the else-branch here (because
each DM has exactly one implementation -- that's what the
check is there for!) because the logging of the error
itself would raise IndexError or ValueError.
This commit is contained in:
Adriaan de Groot 2021-09-27 20:29:03 +02:00
parent 719548213f
commit 96c89fc080

View File

@ -198,7 +198,7 @@ desktop_environments = [
DesktopEnvironment('/usr/bin/fvwm3', 'fvwm3'),
DesktopEnvironment('/usr/bin/sway', 'sway'),
DesktopEnvironment('/usr/bin/ukui-session', 'ukui'),
DesktopEnvironment('/usr/bin/cutefish-session', 'cutefish-xsession'),
DesktopEnvironment('/usr/bin/cutefish-session', 'cutefish-xsession'),
]
@ -923,7 +923,7 @@ def run():
else:
dm_instance = None
else:
libcalamares.utils.debug("{!s} has {!d} implementation classes.".format(dm).format(len(impl)))
libcalamares.utils.debug("{!s} has {!s} implementation classes.".format(dm, len(impl)))
if dm_instance is None:
libcalamares.utils.debug("{!s} selected but not installed".format(dm))