Arthur-Milchior / anki-tex-as-image

Uses tex as image in browser/editor
GNU General Public License v3.0
6 stars 1 forks source link

Error when changing card type on add card screen #5

Open andrewcrook opened 4 years ago

andrewcrook commented 4 years ago

macOS 10.15.5 Anki Version 2.1.26 (70784154) Python 3.8.0 Qt 5.13.1 PyQt 5.14.1 MikTeX Console 2.9.7429

Error An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed. If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeat until you discover the add-on that is causing the problem. When you've discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site. Debug info: Anki 2.1.26 (70784154) Python 3.8.0 Qt 5.13.1 PyQt 5.14.1 Platform: Mac 10.15.5 Flags: frz=True ao=True sv=1 Add-ons, last update check: 2020-06-06 15:36:43 Add-ons possibly involved: ⁨Show LaTeX and MathJax result in editorbrowser⁩

Caught exception: Traceback (most recent call last): File "aqt/webview.py", line 34, in cmd File "aqt/webview.py", line 114, in _onCmd File "aqt/webview.py", line 512, in _onBridgeCmd File "aqt/gui_hooks.py", line 2091, in call File "/Users/auser/Library/Application Support/Anki2/addons21/882784122/init.py", line 34, in onBridgeCmd ord = onBlur(editor, message) File "/Users/auser/Library/Application Support/Anki2/addons21/882784122/anki_code.py", line 30, in onBlur if gui_hooks.editor_did_unfocus_field(False, self.note, int(ord)): TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

andrewcrook commented 4 years ago

I think this might be related to issue #6