From 8ec5b853adf4d5baaf29a79bf4e541f78027b3cb Mon Sep 17 00:00:00 2001 From: BlenderDumbass Date: Thu, 12 Dec 2024 01:19:26 +0200 Subject: [PATCH] Changes --- modules/Render.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 + '
'