Merge pull request #299 from glutanimate/fix-update-none-comparison

Fix timestamp comparison failing when update API returns null
This commit is contained in:
Damien Elmes 2019-04-09 16:05:01 +10:00 committed by GitHub
commit fda69219fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -325,7 +325,7 @@ Are you sure you want to continue?"""
updated = []
for dir, ts in mods:
sid = str(dir)
if self.addonMeta(sid).get("mod",0) < ts:
if self.addonMeta(sid).get("mod", 0) < (ts or 0):
updated.append(sid)
return updated