mirror of
https://github.com/cdryzun/tg_bot_collections.git
synced 2025-04-29 00:27:09 +08:00
fix bug
Signed-off-by: Frost Ming <me@frostming.com>
This commit is contained in:
parent
7af312834c
commit
33eb1bb197
@ -47,7 +47,7 @@ def wrap_handler(handler: T, bot: TeleBot) -> T:
|
|||||||
if not m:
|
if not m:
|
||||||
bot.reply_to(message, "Please provide info after start words.")
|
bot.reply_to(message, "Please provide info after start words.")
|
||||||
return
|
return
|
||||||
return handler(m, *args, **kwargs)
|
return handler(message, *args, **kwargs)
|
||||||
except Exception:
|
except Exception:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
bot.reply_to(message, "Something wrong, please check the log")
|
bot.reply_to(message, "Something wrong, please check the log")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user