We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
当系统存在一个类似 的设备(我也不知道哪来的),get_one()捕捉到后会返回DiskUsageWithExc被draw_disk_usage()当字符串渲染,效果如下
不渲染该驱动器
在nonebot_plugin_picstatus/status.py第199行添加except PermissionError: logger.error(f"读取 {mountpoint} 时没有足够的权限或设备未就绪") return None
except PermissionError: logger.error(f"读取 {mountpoint} 时没有足够的权限或设备未就绪") return None
The text was updated successfully, but these errors were encountered:
这是非预期行为,正常应该只显示报错内容
Sorry, something went wrong.
789ca1f
No branches or pull requests
环境
问题描述
当系统存在一个类似


的设备(我也不知道哪来的),get_one()捕捉到后会返回DiskUsageWithExc被draw_disk_usage()当字符串渲染,效果如下
期望的结果
不渲染该驱动器
截图或日志
可能的解决方案
在nonebot_plugin_picstatus/status.py第199行添加

except PermissionError: logger.error(f"读取 {mountpoint} 时没有足够的权限或设备未就绪") return None
The text was updated successfully, but these errors were encountered: