Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

功能建议 #33

Closed
BalconyJH opened this issue Oct 8, 2023 · 1 comment
Closed

功能建议 #33

BalconyJH opened this issue Oct 8, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@BalconyJH
Copy link

环境

  • 操作系统 winserver2019
  • Python 版本 3.9.13

问题描述

当系统存在一个类似
image
的设备(我也不知道哪来的),get_one()捕捉到后会返回DiskUsageWithExc被draw_disk_usage()当字符串渲染,效果如下
666d4d934181da4a9c269f3dd5bec840

期望的结果

不渲染该驱动器

截图或日志

{BC0690C3-04AB-48bb-A8AA-DC692ADA239F}

可能的解决方案

在nonebot_plugin_picstatus/status.py第199行添加except PermissionError: logger.error(f"读取 {mountpoint} 时没有足够的权限或设备未就绪") return None
image

@lgc2333
Copy link
Member

lgc2333 commented Oct 8, 2023

这是非预期行为,正常应该只显示报错内容

@lgc2333 lgc2333 reopened this Oct 8, 2023
@lgc2333 lgc2333 added the bug Something isn't working label Oct 8, 2023
@lgc2333 lgc2333 closed this as completed in 789ca1f Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants