I keep getting this error when I try to close Anki and it syncs. App is updated

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

Error message (don't change this)
Anki 24.06.3 (d678e393)  (ao)
Python 3.9.18 Qt 6.6.2 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.taskman", line 106, in wrapped_done

  File "aqt.sync", line 123, in on_future_done

  File "aqt.main", line 1061, in on_collection_sync_finished

  File "C:\Users\dhruv\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py", line 90, in new_after_sync
    original_after_sync()

  File "aqt.main", line 1069, in <lambda>

  File "aqt.main", line 660, in after_sync

  File "aqt.mediasync", line 119, in show_diag_until_finished

AttributeError: 'NoneType' object has no attribute 'show'

Sentry link (for developers)

Does syncing with AnkiWeb before closing Anki make the error disappear?