-
Notifications
You must be signed in to change notification settings - Fork 119
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
[BUG]留言板欢迎信息中带图片的在Flask中访问会报错 #60
Comments
留言板图片格式大概这样的:[img,300,200]http://a2.qpic.cn/psb?/V1rf=0-0[/img] |
收到,有空修复。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
导出留言板欢迎信息中带图片的留言板信息后,使用displayer.py在本地访问留言板信息时直接报错:类型不正确,应该是str或类似bytes的类型
To Reproduce
在空间的留言板中编辑欢迎信息,添加一张图,然后导出,导出后使用displayer.py在本地访问留言板
Expected behavior
一堆报错,最终定位在template_filters.py的content_beautify函数,类型不正确,是由模板引擎调用引起的错误
Solution
目前避免这个报错使其能正常访问可以在template_filters.py的content_beautify函数的所有while之前加上类型判断
但是这样留言板的图片不会显示,显示的是一个image标签
The text was updated successfully, but these errors were encountered: