mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-12-16 13:40:53 +08:00
🐛 修复检查资源下载失败时直接报错的问题
This commit is contained in:
parent
964b3343fd
commit
2bebb1266b
@ -97,7 +97,7 @@ async def check_resource():
|
||||
save_path=file_path)
|
||||
await asyncio.sleep(0.5)
|
||||
except Exception as e:
|
||||
logger.warning('资源检查', f'下载<m>{resource.split("/")[-1]}</m>时<r>出错: {e}</r>')
|
||||
logger.warning('资源检查', f'下载<m>{resource["path"].split("/")[-1]}</m>时<r>出错: {e}</r>')
|
||||
if flag:
|
||||
logger.info('资源检查', '<g>资源下载完成</g>')
|
||||
else:
|
||||
|
@ -27,6 +27,7 @@ operation_button = Flex(justify='center', items=[
|
||||
),
|
||||
ActionType.Ajax(
|
||||
label='重启',
|
||||
className='m-l',
|
||||
api='/LittlePaimon/api/bot_restart',
|
||||
confirmText='该操作将会使Bot重启,在完成重启之前,该页面也将无法访问(也可能会弹出报错,可无视),请耐心等待重启',
|
||||
level=LevelEnum.danger
|
||||
|
Loading…
x
Reference in New Issue
Block a user