Commit cdcd3c8c authored by Andreas Henriksson's avatar Andreas Henriksson Committed by John Stowers

Avoid harmless warning trying to split None autostartcondition

When self.get_austostart_condition() returns None and
autostart_type is not None, the following code will
try to apply split on None.
The exception handling catches this and returns the correct
value for the function in this case so it's harmless,
this just fixes so that there's no traceback in the application
parent a46bbdb0
......@@ -156,7 +156,7 @@ class AutostartManager:
def uses_autostart_condition(self, autostart_type=None):
asc = self.get_autostart_condition()
if autostart_type:
if asc and autostart_type:
return asc.split(" ", 1)[0] == autostart_type
return asc != None
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment