mirror of
https://github.com/towalink/wgfrontend.git
synced 2025-09-14 23:01:14 +00:00
Fix traceback when on_change_command is not set
This commit is contained in:
@@ -124,6 +124,7 @@ class Configuration():
|
||||
def on_change_command(self):
|
||||
"""The command to be executed on config changes"""
|
||||
cmd = self.config.get('on_change_command')
|
||||
if cmd is not None:
|
||||
cmd = cmd.strip('"\'')
|
||||
return cmd
|
||||
|
||||
|
Reference in New Issue
Block a user