import: don't crash due to missing id

Fixes #129
This commit is contained in:
Daniel Martí 2015-11-18 15:33:30 -08:00
parent 3a616e2d9f
commit 5e1b07dce3
2 changed files with 2 additions and 1 deletions

View file

@ -1027,7 +1027,7 @@ def app_matches_packagename(app, package):
if not package:
return False
appid = app['Update Check Name'] or app['id']
if appid == "Ignore":
if appid is None or appid == "Ignore":
return True
return appid == package

View file

@ -175,6 +175,7 @@ def main():
apps = metadata.read_metadata()
package, app = metadata.get_default_app_info_list(apps)
app['id'] = None
app['Update Check Mode'] = "Tags"
root_dir = None