Skip to content

Small string bugs + catch errors for duplicated analyses in get_analysis_result_files #16

@CarlosLopezElorduy

Description

@CarlosLopezElorduy

A partner has noticed two minors bugs to be fixed:

  1. String double quotes should become single quotes in "records"
  2. Replace this line in custom_api.py in the section # Download the result files for each analysis:
-#get_analysis_result_files(project_uuid, analysis_uuid, main_headers, output_file)
+try:
+    get_analysis_result_files(project_uuid, analysis_uuid, main_headers, output_file)
+except requests.exceptions.HTTPError as e:
+    if "duplicate entry" in str(e):
+        print(f"Skipped analysis {analysis_uuid}: duplicate file detected.")
+        skipped_analyses.append(analysis_uuid)
+    else:
+        raise

@Paulagomis

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions