Skip to content

Commit

Permalink
improve try catch
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-parker committed Oct 4, 2024
1 parent 33675f4 commit 8a2ecac
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ena-submission/scripts/create_assembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,16 +345,16 @@ def assembly_table_create(
error_msg = f"Entry {row["accession"]} not found in project_table"
raise RuntimeError(error_msg)

manifest_object = create_manifest_object(
config,
results_in_sample_table[0],
results_in_project_table[0],
sample_data_in_submission_table[0],
seq_key,
group_key,
test,
)
try:
manifest_object = create_manifest_object(
config,
results_in_sample_table[0],
results_in_project_table[0],
sample_data_in_submission_table[0],
seq_key,
group_key,
test,
)
manifest_file = create_manifest(manifest_object)
except Exception as e:
logger.error(f"Manifest creation failed for accession {row["accession"]} with error {e}")
Expand Down

0 comments on commit 8a2ecac

Please sign in to comment.