Before the error happened, I was…
[Replace this text.]
Error message (don't change this)
Anki 26.09.3 (29bb700b) (ao)
Python 3.13.15 Qt 6.11.2 PyQt 6.11.0
Platform: Linux-7.0.0-38-generic-x86_64-with-glibc2.42
Traceback (most recent call last):
File "/app/lib/python3.13/site-packages/aqt/webview.py", line 213, in cmd
return json.dumps(self.onCmd(str))
~~~~~~~~~~^^^^^
File "/app/lib/python3.13/site-packages/aqt/webview.py", line 304, in _onCmd
return self._onBridgeCmd(str)
~~~~~~~~~~~~~~~~~^^^^^
File "/app/lib/python3.13/site-packages/aqt/webview.py", line 867, in _onBridgeCmd
handled, result = gui_hooks.webview_did_receive_js_message(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
(False, None), cmd, self._bridge_context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/app/lib/python3.13/site-packages/_aqt/hooks.py", line 4591, in __call__
handled = filter(handled, message, context)
File "/home/martin/.var/app/net.ankiweb.Anki/data/Anki2/addons21/1322529746/gui/editor.py", line 426, in _on_js_message
_refresh_buttons(context)
~~~~~~~~~~~~~~~~^^^^^^^^^
File "/home/martin/.var/app/net.ankiweb.Anki/data/Anki2/addons21/1322529746/gui/editor.py", line 350, in _refresh_buttons
note = editor.note
^^^^^^^^^^^
AttributeError: 'NewEditor' object has no attribute 'note'