diff --git a/modules/Render.py b/modules/Render.py index 641c75c..48a0a63 100644 --- a/modules/Render.py +++ b/modules/Render.py @@ -440,7 +440,10 @@ def MainPage(server): Accounts = accounts() owner = config.get("main_account", "") mastodon = Accounts[owner].get("mastodon") - mastoposts = API.Mastodon(mastohead(mastodon), 8).copy() + if mastodon: + mastoposts = API.Mastodon(mastohead(mastodon), 8).copy() + else: + mastoposts = [] html = html + '