[no ci] handle matters with no holds

This commit is contained in:
Jay Lee
2023-07-25 15:45:55 +00:00
parent b1ec0b9b83
commit 09a1e09c30

View File

@@ -37860,7 +37860,7 @@ def printShowUserVaultHolds(entityList):
matterId = matter['matterId']
matterName = matter['name']
matterNameId = formatVaultNameId(matterName, matterId)
for hold in matter['holds']:
for hold in matter.get('holds', []):
if 'orgUnit' in hold:
orgUnitId = hold['orgUnit'].get('orgUnitId')
if orgUnitId in orgUnits: