Skip to content

Commit

Permalink
fix: syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
progmatic-99 committed Mar 31, 2024
1 parent b21d04d commit 1d32f97
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ async def get_all_items(update: Update, ctx: ContextTypes.DEFAULT_TYPE) -> int:
name, quantity, price = item
table.add_row([name, quantity, price])

await update.message.reply_text(f"Following items were added by {user}:\n```{table}```", parsemode=MarkdownV2)
await update.message.reply_text(
f"Following items were added by {user}:\n```{table}```",
parsemode="MarkdownV2",
)
except sqlite3.Error as e:
logger.error(e)
await update.message.reply_text(e)
Expand Down

0 comments on commit 1d32f97

Please sign in to comment.