Skip to content

Commit

Permalink
fixed error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
idalindegaard committed Jan 23, 2025
1 parent 0ce26ee commit b822186
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cg_lims/EPPs/udf/calculate/revio_abc_volumes.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ def revio_abc_volumes(
artifacts: List[Artifact] = get_artifacts(process=process)

for artifact in artifacts:
if artifact.udf[volume_udf] == None:
if artifact.udf.get(volume_udf) == None:
error_message = (
"Missing a value for one or more sample volumes")
"Missing a value for one or more sample volumes.")
LOG.error(error_message)
raise MissingValueError(error_message)
set_annealing_mix_per_sample(artifact=artifact, volume_udf=volume_udf)
Expand Down

0 comments on commit b822186

Please sign in to comment.