From aed7cfd8dd1b6cec67e2cd16991f64b4442eb737 Mon Sep 17 00:00:00 2001 From: Henri Date: Sat, 5 Dec 2020 22:05:47 +0100 Subject: [PATCH] Fix traceback when on_change_command is not set --- src/wgfrontend/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wgfrontend/config.py b/src/wgfrontend/config.py index da4f85a..ea6e4a2 100644 --- a/src/wgfrontend/config.py +++ b/src/wgfrontend/config.py @@ -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