anki/aqt
Arthur-Milchior c670dd65b4 Correct a bug during add-on update
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.
2019-02-18 12:29:08 +01:00
..
__init__.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
about.py Adding Arthur Milchior to contributors 2019-02-16 11:28:02 +01:00
addcards.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
addons.py Correct a bug during add-on update 2019-02-18 12:29:08 +01:00
browser.py fix context menu in editor, and move workaround into shared function 2019-02-05 14:37:07 +10:00
clayout.py style and arg order fix 2019-02-18 12:44:04 +10:00
customstudy.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
deckbrowser.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
deckchooser.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
deckconf.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
downloader.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
dyndeckconf.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
editcurrent.py focus web area after delay in editcurrent 2019-02-06 10:09:05 +10:00
editor.py preserve whitespace when pasting text 2019-02-06 12:00:50 +10:00
errors.py wording tweak 2019-02-18 13:07:20 +10:00
exporting.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
fields.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
importing.py fix schema not being modified on backup import 2019-02-14 15:22:57 +10:00
main.py Print-wrap current line rather than the entire field 2019-02-16 12:23:31 +01:00
mediasrv.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
modelchooser.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
models.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
overview.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
pinnedmodules.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
preferences.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
profiles.py catch profile rename error in non-English locales 2019-02-06 09:02:56 +10:00
progress.py avoid running timers after collection unload 2019-02-06 12:03:14 +10:00
qt.py Explicitly import all QtWebEngineWidgets 2019-02-15 13:55:35 +01:00
reviewer.py fix context menu in editor, and move workaround into shared function 2019-02-05 14:37:07 +10:00
sound.py allow running with pyaudio missing 2019-02-13 09:36:39 +10:00
stats.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
studydeck.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
sync.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
tagedit.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
taglimit.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
toolbar.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
update.py send build hash in update check so broken betas can be notified 2019-02-18 14:07:43 +10:00
utils.py Extend showInfo with ability to copy text to clipboard 2019-02-16 23:05:06 +01:00
webview.py turn local port message into a tooltip and automatically reload 2019-02-06 07:55:34 +10:00
winpaths.py fix winpaths for py3 2018-08-08 23:31:18 +10:00