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).
This commit is contained in:
parent
0b39825f19
commit
eb6ca9e3d2
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue