mirror of
https://github.com/towalink/wgfrontend.git
synced 2025-04-19 00:45:15 +00:00
Fix traceback when on_change_command is not set
This commit is contained in:
parent
615d1ead32
commit
aed7cfd8dd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user