From d56d75e48eab02fdcfdbf3a321011216f2d383d4 Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Fri, 10 Apr 2020 01:10:26 +0200 Subject: [PATCH] fix for empty configs --- screenless/bureau/bureau.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/screenless/bureau/bureau.py b/screenless/bureau/bureau.py index ca52348..1f9611f 100644 --- a/screenless/bureau/bureau.py +++ b/screenless/bureau/bureau.py @@ -267,6 +267,8 @@ class Bureau(object): yaml.dump(self.default_config, configfile) with open(cfgfile) as cfp: self.config = yaml.load(cfp) + if self.config is None: + self.config = {} def send(self, recipient, message, data=None): """