Anki-Hub add on error freezes anki

Before the error happened, I was just trying to log into one of my profiles

Error message (don't change this)
Anki 23.12.1 (1a1d4d54)  (ao)
Python 3.9.15 Qt 6.6.1 PyQt 6.6.1
Platform: Windows-10-10.0.22631

Traceback (most recent call last):

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

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

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

  File "C:\Users\ragha\AppData\Roaming\Anki2\addons21\1322529746\gui\media_sync.py", line 54, in on_failure
    raise exception

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

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

  File "C:\Users\ragha\AppData\Roaming\Anki2\addons21\1322529746\gui\media_sync.py", line 58, in <lambda>
    op=lambda _: self._update_deck_media_and_download_missing_media(),

  File "C:\Users\ragha\AppData\Roaming\Anki2\addons21\1322529746\gui\media_sync.py", line 138, in _update_deck_media_and_download_missing_media
    self._client.download_media(missing_media_names, ah_did)

  File "C:\Users\ragha\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 547, in download_media
    media_path = media_dir_path / media_name

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

Sentry link (for developers)

Hello,

I would first recommend that you try updating your version of Anki. The most recent version (in this case 24.11) can always be found at the Anki website: https://apps.ankiweb.net/

Let me know how/if that works for you. :slight_smile: