From eb6ca9e3d2453a2014ad29dcb00869abf683f307 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 11 Mar 2026 19:05:56 +0700 Subject: [PATCH] fix(fuenfvoracht): NoneType-Crash in handle_message beheben Bot crashte mit AttributeError wenn effective_user None war (z.B. bei automatischen Kanal-Nachrichten ohne Absender). --- fuenfvoracht/src/bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fuenfvoracht/src/bot.py b/fuenfvoracht/src/bot.py index 995bb03c..3a3b50aa 100644 --- a/fuenfvoracht/src/bot.py +++ b/fuenfvoracht/src/bot.py @@ -185,6 +185,8 @@ async def handle_callback(update: Update, ctx: ContextTypes.DEFAULT_TYPE): # ── Textnachrichten ─────────────────────────────────────────────────────────── async def handle_message(update: Update, ctx: ContextTypes.DEFAULT_TYPE): + if update.effective_user is None: + return if not is_reviewer(update.effective_user.id): return # Suche ob ein Edit-Pending-Slot aktiv ist