Skip to content

Commit a28e111

Browse files
Update download_tml_to_disk.py
1 parent a468780 commit a28e111

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/download_tml_to_disk.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,13 @@ def export_tml_with_obj_id(guid:Optional[str] = None,
9191
"include_obj_id": True
9292
}
9393

94-
yaml_tml = ts.metadata_tml_export(metadata_ids=[guid], edoc_format='YAML',
95-
export_options=exp_opt)
94+
try:
95+
yaml_tml = ts.metadata_tml_export(metadata_ids=[guid], edoc_format='YAML',
96+
export_options=exp_opt)
97+
except requests.exceptions.HTTPError as e:
98+
print(e)
99+
print(e.response.content)
100+
exit()
96101

97102
# Get obj_id from the TML
98103
lines = yaml_tml[0]['edoc'].splitlines()

0 commit comments

Comments
 (0)