mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-28 18:01:36 +00:00
Update vault.py
This commit is contained in:
@@ -976,10 +976,14 @@ def printHolds():
|
||||
for matterId in matterIds:
|
||||
i += 1
|
||||
sys.stderr.write(f'Retrieving holds for matter {matterId} ({i}/{matter_count})\n')
|
||||
holds = gapi.get_all_pages(v.matters().holds(),
|
||||
try:
|
||||
holds = gapi.get_all_pages(v.matters().holds(),
|
||||
'list',
|
||||
'holds',
|
||||
throw_reasons=[gapi_errors.ErrorReason.FOUR_O_O],
|
||||
matterId=matterId)
|
||||
except gapi_errors.GapiInvalidError:
|
||||
continue
|
||||
for hold in holds:
|
||||
display.add_row_titles_to_csv_file(
|
||||
utils.flatten_json(hold, flattened={'matterId': matterId}),
|
||||
|
||||
Reference in New Issue
Block a user