1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 13:44:14 +01:00

service: don’t crash if configfile is not set

Fixes #1015
This commit is contained in:
Johan Andersson 2019-01-06 20:21:45 +01:00
parent 56d3d8f09b
commit a4d4769457

View File

@ -32,7 +32,7 @@ class Service(object):
self.http = http
# Config
if os.path.isfile(config.get("configfile")):
if config.get("configfile") and os.path.isfile(config.get("configfile")):
self.config = merge(readconfig(setup_defaults(), config.get("configfile"),
service=self.__class__.__name__.lower()).get_variable(), config.get_variable())
else: