mirror of
https://github.com/ankitects/anki.git
synced 2025-11-16 17:47:11 -05:00
If an add-on folder contains only number, but does not contains a meta.json file, or if this file does not contains a "mod" value, then the following uninformative message error occur: ```Python File "aqt/addons.py", line 387, in onCheckForUpdates File "aqt/addons.py", line 183, in checkForUpdates File "aqt/addons.py", line 199, in _updatedIds <class 'TypeError'>: '<' not supported between instances of 'NoneType' and 'int' ``` This is because there is a .get in a code while the None value makes no sens. Thus, I replaced None by a 0 value. Which ensure that, if the last modification time is missing, the update will be done. Three case may occur: * either the addon is already up to date, and it's only a waste of bandwidth * either the add-on is not up to date, and updating was the initial goal anyway * Or some change did occur in the add-on folder (which is actually probably, since it would explain the "missing mod problem"; in this case this change may be lost, but thout would be the same problem if the mod number was still there. Other solutions which I could implement would be: * asking for the user whether they want to update * considering that it's not an ankiweb related add-on anymore, and ignore it. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| about.py | ||
| addcards.py | ||
| addons.py | ||
| browser.py | ||
| clayout.py | ||
| customstudy.py | ||
| deckbrowser.py | ||
| deckchooser.py | ||
| deckconf.py | ||
| downloader.py | ||
| dyndeckconf.py | ||
| editcurrent.py | ||
| editor.py | ||
| errors.py | ||
| exporting.py | ||
| fields.py | ||
| importing.py | ||
| main.py | ||
| mediasrv.py | ||
| modelchooser.py | ||
| models.py | ||
| overview.py | ||
| pinnedmodules.py | ||
| preferences.py | ||
| profiles.py | ||
| progress.py | ||
| qt.py | ||
| reviewer.py | ||
| sound.py | ||
| stats.py | ||
| studydeck.py | ||
| sync.py | ||
| tagedit.py | ||
| taglimit.py | ||
| toolbar.py | ||
| update.py | ||
| utils.py | ||
| webview.py | ||
| winpaths.py | ||