Fix traceback when on_change_command is not set

This commit is contained in:
Henri 2020-12-05 22:05:47 +01:00
parent 615d1ead32
commit aed7cfd8dd

View File

@ -124,7 +124,8 @@ class Configuration():
def on_change_command(self):
"""The command to be executed on config changes"""
cmd = self.config.get('on_change_command')
cmd = cmd.strip('"\'')
if cmd is not None:
cmd = cmd.strip('"\'')
return cmd
@property