Captain Ezio commited on
Commit
dd47bed
·
1 Parent(s): f5fa99b

Update bans.py

Browse files
Files changed (1) hide show
  1. Powers/plugins/bans.py +5 -5
Powers/plugins/bans.py CHANGED
@@ -3,7 +3,7 @@ from traceback import format_exc
3
 
4
  from pyrogram import enums
5
  from pyrogram.errors import (ChatAdminRequired, PeerIdInvalid, RightForbidden,
6
- RPCError, UserAdminInvalid, WebpageCurlFailed)
7
  from pyrogram.filters import regex
8
  from pyrogram.types import (CallbackQuery, ChatPrivileges,
9
  InlineKeyboardButton, InlineKeyboardMarkup,
@@ -116,7 +116,7 @@ async def tban_usr(c: Gojo, m: Message):
116
  reply_markup=keyboard,
117
  parse_mode=enums.ParseMode.HTML,
118
  )
119
- except WebpageCurlFailed:
120
 
121
  await m.reply_text(
122
  reply_to_message_id=r_id,
@@ -332,7 +332,7 @@ async def dtban_usr(c: Gojo, m: Message):
332
  reply_markup=keyboard,
333
  parse_mode=enums.ParseMode.HTML,
334
  )
335
- except WebpageCurlFailed:
336
 
337
  await m.reply_text(
338
  txt,
@@ -826,7 +826,7 @@ async def dban_usr(c: Gojo, m: Message):
826
  await c.send_animation(
827
  m.chat.id, animation=str(animm), caption=txt, reply_markup=keyboard
828
  )
829
- except WebpageCurlFailed:
830
  await c.send_message(m.chat.id,txt,enums.ParseMode.HTML,reply_markup=keyboard)
831
  await c.send_messagea(MESSAGE_DUMP,f"#REMOVE from BAN_GIFS\n{animm}")
832
  except ChatAdminRequired:
@@ -935,7 +935,7 @@ async def ban_usr(c: Gojo, m: Message):
935
  reply_markup=keyboard,
936
  parse_mode=enums.ParseMode.HTML,
937
  )
938
- except WebpageCurlFailed:
939
 
940
  await m.reply_text(
941
  reply_to_message_id=r_id,
 
3
 
4
  from pyrogram import enums
5
  from pyrogram.errors import (ChatAdminRequired, PeerIdInvalid, RightForbidden,
6
+ RPCError, UserAdminInvalid)
7
  from pyrogram.filters import regex
8
  from pyrogram.types import (CallbackQuery, ChatPrivileges,
9
  InlineKeyboardButton, InlineKeyboardMarkup,
 
116
  reply_markup=keyboard,
117
  parse_mode=enums.ParseMode.HTML,
118
  )
119
+ except Exception:
120
 
121
  await m.reply_text(
122
  reply_to_message_id=r_id,
 
332
  reply_markup=keyboard,
333
  parse_mode=enums.ParseMode.HTML,
334
  )
335
+ except Exception:
336
 
337
  await m.reply_text(
338
  txt,
 
826
  await c.send_animation(
827
  m.chat.id, animation=str(animm), caption=txt, reply_markup=keyboard
828
  )
829
+ except Exception:
830
  await c.send_message(m.chat.id,txt,enums.ParseMode.HTML,reply_markup=keyboard)
831
  await c.send_messagea(MESSAGE_DUMP,f"#REMOVE from BAN_GIFS\n{animm}")
832
  except ChatAdminRequired:
 
935
  reply_markup=keyboard,
936
  parse_mode=enums.ParseMode.HTML,
937
  )
938
+ except Exception:
939
 
940
  await m.reply_text(
941
  reply_to_message_id=r_id,