sb 修复一个错误

This commit is contained in:
xtaodada 2022-07-10 17:53:10 +08:00
parent 350b678149
commit 75fa516ae3
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 5 additions and 2 deletions

View File

@ -282,7 +282,7 @@
},
{
"name": "sb",
"version": "1.0",
"version": "1.001",
"section": "chat",
"maintainer": "xtaodada",
"size": "3.5 kb",

View File

@ -79,7 +79,10 @@ async def super_ban(message: Message):
except Exception as e:
return await message.edit(f"出现错误:{e}")
return await message.edit(lang("sb_channel"))
common = await bot.get_common_chats(uid)
try:
common = await bot.get_common_chats(uid)
except PeerIdInvalid:
common = [chat]
count, groups = 0, []
for i in common:
try: