From 7810f3b7b90b50b81a05d58bbdc62aa9e17accce Mon Sep 17 00:00:00 2001 From: profitroll Date: Fri, 24 Feb 2023 21:06:18 +0100 Subject: [PATCH] Fixed absence of None check --- modules/sender.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sender.py b/modules/sender.py index 61df84b..c5194b6 100644 --- a/modules/sender.py +++ b/modules/sender.py @@ -77,7 +77,7 @@ async def send_content(app: PosterClient) -> None: else: caption = "" - if configGet("enabled", "posting", "submitted_caption") and ( + if submitted is not None and configGet("enabled", "posting", "submitted_caption") and ( (submitted["user"] not in app.admins) or (configGet("ignore_admins", "posting", "submitted_caption") is False) ): caption = f"{caption}\n\n{configGet('text', 'posting', 'submitted_caption')}\n"