Eroro

Before the error happened, I was…
[Replace this text.]

Error message (don't change this)
Anki 25.02.5 (29192d15)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: macOS-13.3-arm64-arm-64bit

Traceback (most recent call last):

  File "aqt.taskman", line 144, in _on_closures_pending

  File "aqt.taskman", line 88, in <lambda>

  File "aqt.operations", line 253, in wrapped_done

  File "/Users/riyakaushal/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 59, in on_failure
    raise exception

  File "concurrent.futures.thread", line 58, in run

  File "aqt.operations", line 243, in wrapped_op

  File "/Users/riyakaushal/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 63, in <lambda>
    op=lambda _: self._update_deck_media_and_download_missing_media(),

  File "/Users/riyakaushal/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 143, in _update_deck_media_and_download_missing_media
    self._client.download_media(missing_media_names, ah_did)

  File "/Users/riyakaushal/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 558, in download_media
    media_path = media_dir_path / media_name

TypeError: unsupported operand type(s) for /: 'NoneType' and 'str'

Sentry link (for developers)

Hello,

Please make sure your AnkiHub add-on is up to date:

On Anki’s main screen, go to Tools > Add-ons > Check for Updates. Restart Anki after that.

Let us know if the error occurs again!

@riyakaushal
Is this occurring when closing Anki? Does syncing manually before closing Anki help?