sirius-fan / FastWordQuery

A fork of the FastWordQuery. Query words definitions or examples etc. from local or web dictionaries to fill into Anki cards.
GNU General Public License v3.0
74 stars 13 forks source link

type object 'Template' has no attribute 'miss_css' #21

Open zzonn opened 11 months ago

zzonn commented 11 months ago

历史问题详情: https://github.com/sth2018/FastWordQuery/issues/137

错误 运行出错。请在启动 Anki 时按住 Shift 键以临时禁用插件加载。 如仅在插件启用时出错,请使用「工具」>「插件」功能禁用部分插件后重启 Anki,请重复上述步骤找出引起错误的插件并反馈给插件作者。 调试信息: Anki 23.10.1 (fac9e0ee) Python 3.9.15 Qt 6.6.0 PyQt 6.6.0 Platform: Windows-10-10.0.22631 Flags: frz=True ao=True sv=3 Add-ons, last update check: 2023-11-23 21:29:37 相关插件:⁨FastWordQuery-Qt6⁩

Caught exception: Traceback (most recent call last): File "C:\Users\666\AppData\Roaming\Anki2\addons21\103636257\common.py", line 80, in action.triggered.connect(lambda: query_from_browser(browser)) File "C:\Users\666\AppData\Roaming\Anki2\addons21\103636257\query__init__.py", line 55, in query_from_browser query_from_editor_fields(browser.editor) File "C:\Users\666\AppData\Roaming\Anki2\addons21\103636257\query__init.py", line 90, in query_from_editor_fields query_all([editor.note], flush, fields) File "C:\Users\666\AppData\Roaming\Anki2\addons21\103636257\query\init__.py", line 117, in query_all promot_choose_css(work_manager.missed_css) File "C:\Users\666\AppData\Roaming\Anki2\addons21\103636257\query\common.py", line 128, in promot_choose_css Template.miss_css.format(dict=css['title'], css=css['file'])) AttributeError: type object 'Template' has no attribute 'miss_css'