about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2022-06-14 17:09:18 -0400
committerBen Harris <ben@tilde.team>2022-06-14 17:09:18 -0400
commit5cfa7a124821a04d6ad9095e68b9f5b62f1c132e (patch)
treefbc40f1d4ca731ea4a22f1d0de8737dd117df836
parent8aa6eadb396c25427894a3f32b35413749097508 (diff)
fix channel loading HEAD master
-rw-r--r--config.py5
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),