Skip to content

Commit

Permalink
munkiimport: Catch more Exceptions when processesing catalogs
Browse files Browse the repository at this point in the history
  • Loading branch information
gregneagle committed Nov 1, 2022
1 parent 1f0dec6 commit 929a7e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/client/munkilib/admin/munkiimportlib.py
Expand Up @@ -203,7 +203,7 @@ def make_catalog_db(repo):
if not pkgvers in pkgid_table[pkgid]:
pkgid_table[pkgid][pkgvers] = []
pkgid_table[pkgid][pkgvers].append(itemindex)
except TypeError:
except (TypeError, AttributeError):
print('Bad receipt data for %s-%s: %s' % (name, vers, receipt),
file=sys.stderr)

Expand Down

0 comments on commit 929a7e9

Please sign in to comment.