Captain Ezio commited on
Commit
d9c967b
·
1 Parent(s): c34c0f1

Update utils.py

Browse files
Files changed (1) hide show
  1. Powers/plugins/utils.py +1 -1
Powers/plugins/utils.py CHANGED
@@ -291,7 +291,7 @@ async def paste_func(_, message: Message):
291
  link = await paste(content)
292
  if len(link.split()) != 1:
293
  await m.delete()
294
- return await message.reply_text(f"Failed to post. Due to following error:\n{e}")
295
  kb = [[InlineKeyboardButton(text="Paste Link ", url=link)]]
296
  await m.delete()
297
  try:
 
291
  link = await paste(content)
292
  if len(link.split()) != 1:
293
  await m.delete()
294
+ return await message.reply_text(f"While posting got an error:\n{e}")
295
  kb = [[InlineKeyboardButton(text="Paste Link ", url=link)]]
296
  await m.delete()
297
  try: