Update timing_task.py

This commit is contained in:
HibiKier 2021-07-30 22:28:13 +08:00 committed by GitHub
parent 1b99c34cfb
commit 825671447a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,7 @@ async def _():
minutes=5, minutes=5,
) )
async def _(): async def _():
try:
bot = get_bot() bot = get_bot()
gl = await bot.get_group_list(self_id=bot.self_id) gl = await bot.get_group_list(self_id=bot.self_id)
gl = [g["group_id"] for g in gl] gl = [g["group_id"] for g in gl]
@ -36,3 +37,5 @@ async def _():
if g not in all_group: if g not in all_group:
await update_member_info(g) await update_member_info(g)
logger.info(f"快速更新群信息以及权限:{g}") logger.info(f"快速更新群信息以及权限:{g}")
except IndexError:
pass