diff options
Diffstat (limited to 'config.py')
-rw-r--r-- | config.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config.py b/config.py index 0844a1b..a17d1ae 100644 --- a/config.py +++ b/config.py @@ -42,8 +42,9 @@ def load(filepath: str): access_token=acct["access_token"], api_base_url=acct["api_base_url"], ) - for channel in acct["channels"]: - channels[channel] = acct["name"] + if "channels" in acct: + for channel in acct["channels"]: + channels[channel] = acct["name"] return Config( (hostname, port, tls), |