🐛 Use v13 signature for error handler

This commit is contained in:
Jannes Höke 2022-12-07 14:06:58 +01:00
parent 961a9ced76
commit f16bf317b5

View file

@ -19,6 +19,8 @@
import logging
from telegram import Update
from telegram.ext import CallbackContext
from internationalization import _, __
from mwt import MWT
@ -73,11 +75,11 @@ def display_color_group(color, game):
if color == "y":
return __("{emoji} Yellow", game.translate).format(
emoji='💛')
def error(bot, update, error):
def error(update: Update, context: CallbackContext):
"""Simple error handler"""
logger.exception(error)
logger.exception(context.error)
def send_async(bot, *args, **kwargs):