mirror of
https://github.com/towalink/wgfrontend.git
synced 2025-04-19 08:55:11 +00:00
Fix traceback when on_change_command is not set
This commit is contained in:
parent
615d1ead32
commit
aed7cfd8dd
@ -124,6 +124,7 @@ class Configuration():
|
|||||||
def on_change_command(self):
|
def on_change_command(self):
|
||||||
"""The command to be executed on config changes"""
|
"""The command to be executed on config changes"""
|
||||||
cmd = self.config.get('on_change_command')
|
cmd = self.config.get('on_change_command')
|
||||||
|
if cmd is not None:
|
||||||
cmd = cmd.strip('"\'')
|
cmd = cmd.strip('"\'')
|
||||||
return cmd
|
return cmd
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user