Skip to content

Commit

Permalink
Fix error handler (#11)
Browse files Browse the repository at this point in the history
fix: error_handler msg

* style(error_handler) fix too long line
  • Loading branch information
NikitosKey authored Dec 21, 2024
1 parent 14f2a76 commit dee91b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bot/handlers/error_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ 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 dee91b3

Please sign in to comment.