I do not know what happened with my Anki account. It just deleted all of my decks that I had been working on all year. I think there was an error when I tried to sync my account through my phone and iPad. Please let me know if there is anything to be done

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

Error message (don't change this)
Anki 25.02.7 (1b882285)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.26200

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 "C:\Users\hanna6m\AppData\Roaming\Anki2\addons21\1322529746\gui\media_sync.py", line 63, in on_failure
    raise exception

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

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

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

  File "C:\Users\hanna6m\AppData\Roaming\Anki2\addons21\1322529746\gui\media_sync.py", line 135, in _update_deck_media_and_download_missing_media
    missing_media_names = self._missing_media_for_ah_deck(ah_did)

  File "C:\Users\hanna6m\AppData\Roaming\Anki2\addons21\1322529746\gui\media_sync.py", line 211, in _missing_media_for_ah_deck
    referenced_media = self._media_referenced_by_notes(ah_did)

  File "C:\Users\hanna6m\AppData\Roaming\Anki2\addons21\1322529746\gui\media_sync.py", line 203, in _media_referenced_by_notes
    media_names.update(get_media_names_from_notetype(note_type))

  File "C:\Users\hanna6m\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\models.py", line 353, in get_media_names_from_notetype
    refs.update(local_media_names_from_html(note_type["css"]))

TypeError: 'NoneType' object is not subscriptable

Sentry link (for developers)

Hello,

Please restore your Anki collection from a backup made before this occurred: How to Restore from Backup

If this happened while you were trying to sync on your mobile device, you may have been asked whether you wanted to upload to or download from AnkiWeb. If you chose to upload, you likely overwrote your entire collection in the cloud. Simply restore from a backup, and please be careful when choosing whether to upload or download to AnkiWeb in the future.

As a reminder, if you choose to upload, everything on your current device will overwrite the cloud. If you choose to download, everything in the cloud will overwrite what is on your current device. Always make sure you know which version is the most up-to-date.

If you are having any errors in the process, please tell me exactly when the error is happening, and paste it here. Knowing how the error got triggered is essential to understand what’s happening.

Thank you Marco I appreciate it.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.