Skip to content

Commit

Permalink
fix: error_handler msg
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitosKey committed Dec 21, 2024
1 parent 85cfb92 commit 97b0f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/handlers/error_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ async def error_handler(update: Update, context: CallbackContext) -> None:
Log the error caused by an update.
"""
logging.error(
msg="Exception while handling an update:" + str(update.effective_user.id),
msg="Exception while handling an update:" + str(update.effective_user.id if update else "None"),
exc_info=context.error,
)

0 comments on commit 97b0f3b

Please sign in to comment.