Don't assume 'MediaType' key for each product in parsed optionXML.xml

This commit is contained in:
Timothy Sutton
2016-06-23 20:24:42 -04:00
parent 2d664a6b33
commit c665a243f6
+1 -1
View File
@@ -1284,7 +1284,7 @@ def getAdobeCatalogInfo(mountpoint, pkgname=""):
product_saps = [
prod['SAPCode'] for
prod in option_xml_info['products']
if prod['MediaType'] == 'Product'
if prod.get('MediaType') == 'Product'
]
for app_info in [app for app in hd_app_infos
if app['SAPCode'] in product_saps]: