Merge pull request #284 from Arthur-Milchior/ErrorInCaseOfMissimngMod

Tolerate manually installed add-ons with numeric ids
This commit is contained in:
Damien Elmes 2019-02-19 10:30:04 +10:00 committed by GitHub
commit a0b9b6c0f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -196,7 +196,7 @@ When loading '%(name)s':
updated = []
for dir, ts in mods:
sid = str(dir)
if self.addonMeta(sid).get("mod") < ts:
if self.addonMeta(sid).get("mod",0) < ts:
updated.append(sid)
return updated