Zeal-L / BiliBili-Manga-Downloader

一个好用的哔哩哔哩漫画下载器,拥有图形界面,支持关键词搜索漫画和二维码登入,黑科技下载未解锁章节,多线程下载,多种保存格式,本地漫画管理,一键检查更新!
GNU Affero General Public License v3.0
868 stars 53 forks source link

🐛 修复一个运行时错误 #123

Closed spr-equinox closed 5 months ago

spr-equinox commented 5 months ago
self.xml_write_simple_tag(f, "Count", self.metadata["Count"])

此操作为 xml_write_simple_tag 传入了 int。而函数中的 str() 转换被 pylint 自动优化掉了。运行时会卡死,可以改源码捕获到错误。

'int' object has no attribute 'replace'
'int' object has no attribute 'replace'
'int' object has no attribute 'replace'
'int' object has no attribute 'replace'
'int' object has no attribute 'replace'
'int' object has no attribute 'replace'
spr-equinox commented 5 months ago

改好了