Skip to content

Commit

Permalink
Add more exception catching when reading catalogs in munkiimport
Browse files Browse the repository at this point in the history
  • Loading branch information
gregneagle committed Nov 1, 2022
1 parent 252fa78 commit 1f0dec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/client/munkilib/admin/munkiimportlib.py
Expand Up @@ -217,7 +217,7 @@ def make_catalog_db(repo):
if not vers in app_table[install['path']]:
app_table[install['path']][vers] = []
app_table[install['path']][vers].append(itemindex)
except TypeError:
except (TypeError, AttributeError):
print('Bad install data for %s-%s: %s' % (name, vers, install),
file=sys.stderr)

Expand Down

0 comments on commit 1f0dec6

Please sign in to comment.