fix for empty configs

workspace
Brendan Howell 5 years ago
parent 099cb310a3
commit d56d75e48e

@ -267,6 +267,8 @@ class Bureau(object):
yaml.dump(self.default_config, configfile) yaml.dump(self.default_config, configfile)
with open(cfgfile) as cfp: with open(cfgfile) as cfp:
self.config = yaml.load(cfp) self.config = yaml.load(cfp)
if self.config is None:
self.config = {}
def send(self, recipient, message, data=None): def send(self, recipient, message, data=None):
""" """

Loading…
Cancel
Save