Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ds/kasta.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ async def __join_us(self) -> None:
try:
await self.join_chat(-1001174631272)
await asyncio.sleep(random.uniform(3.5, 6.5))
except BaseException:
except Exception:
pass
try:
await self.join_chat(-1001699144606)
except BaseException:
except Exception:
pass
2 changes: 1 addition & 1 deletion ds/patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@ def client(self) -> Client:
async def delete(self, revoke: bool = True) -> bool:
try:
return await self.old_delete(revoke=revoke)
except BaseException:
except Exception:
return False
4 changes: 2 additions & 2 deletions ds/plugins/delayspam.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def _ds(c, m):
try:
args = cmd[1:]
delay, count = int(args[0]), int(args[1])
except BaseException:
except Exception:
return await eor(m, f"`{Var.HANDLER}ds{ds} [delay] [count] [forward (reply only)] [text/reply]`", time=6)
is_text, is_forward = False, False
if m.reply_to_message_id:
Expand Down Expand Up @@ -228,7 +228,7 @@ async def eor(
)
if not time:
return result
except BaseException:
except Exception:
result = await message.reply(
text,
quote=True,
Expand Down
8 changes: 4 additions & 4 deletions ds/plugins/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async def _ping(_, m):
try:
await m.delete()
await msg.edit(text)
except BaseException:
except Exception:
await msg.delete()
await m.reply(
text,
Expand Down Expand Up @@ -226,7 +226,7 @@ async def _join(c, m):
await m.edit(f"🔃 Join retry {count}...")
await asyncio.sleep(random.uniform(6.5, 8.5))
continue
except BaseException:
except Exception:
break
if state:
break
Expand Down Expand Up @@ -256,7 +256,7 @@ async def _leave(c, m):
state = False
try:
state = bool(await c.leave_chat(chat_id, delete=True))
except BaseException:
except Exception:
pass
text = "✅ Leaved" if state else "❌ Error"
await m.edit(text)
Expand All @@ -277,6 +277,6 @@ async def _kickme(c, m):
"""
try:
await c.leave_chat(m.chat.id, delete=True)
except BaseException:
except Exception:
pass
await m.delete()
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruff==0.15.6
ruff==0.15.7
Loading