diff options
author | Ben Harris <ben@tilde.team> | 2022-06-14 17:09:18 -0400 |
---|---|---|
committer | Ben Harris <ben@tilde.team> | 2022-06-14 17:09:18 -0400 |
commit | 5cfa7a124821a04d6ad9095e68b9f5b62f1c132e (patch) | |
tree | fbc40f1d4ca731ea4a22f1d0de8737dd117df836 /config.py | |
parent | 8aa6eadb396c25427894a3f32b35413749097508 (diff) |
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), |