Skip to content

Commit

Permalink
Update handlers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
iskomir committed Apr 21, 2024
1 parent 3e82060 commit 8eb4885
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,15 @@ async def handler_print(update: Update, context: ContextTypes.DEFAULT_TYPE):
)
logging.warning(f'{log_actor(update)} print api 415 UnreadableErr')
return
else: context.bot.send_message(
chat_id=update.effective_user.id,
text=ans.print_err,
parse_mode=ParseMode('HTML'),
)
else:
context.bot.send_message(
chat_id=update.effective_user.id,
text=ans.print_err,
parse_mode=ParseMode('HTML'),
)
logging.warning(f'{log_actor(update)} print unknown error')


@errors_solver
@log_formatter
async def handler_mismatch_doctype(update: Update, context: ContextTypes.DEFAULT_TYPE):
Expand Down

0 comments on commit 8eb4885

Please sign in to comment.