From 8b5236ad9c961a05103a3dc63af8856bed557ce4 Mon Sep 17 00:00:00 2001 From: mac12m99 Date: Wed, 29 May 2019 21:04:07 +0200 Subject: [PATCH] fix crash on settings server --- core/channeltools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/channeltools.py b/core/channeltools.py index af001487..db25ce37 100644 --- a/core/channeltools.py +++ b/core/channeltools.py @@ -134,6 +134,8 @@ def get_channel_json(channel_name): channel_path = filetools.join(config.get_runtime_path(), "channels", channel_name + ".json") if not os.path.isfile(channel_path): channel_path = filetools.join(config.get_runtime_path(), "specials", channel_name + ".json") + if not os.path.isfile(channel_path): + channel_path = filetools.join(config.get_runtime_path(), "servers", channel_name + ".json") if filetools.isfile(channel_path): # logger.info("channel_data=" + channel_path) channel_json = jsontools.load(filetools.read(channel_path))