Skip to content

Commit

Permalink
Update cg_lims/EPPs/files/file_to_udf.py
Browse files Browse the repository at this point in the history
Co-authored-by: Karl Svärd <[email protected]>
  • Loading branch information
idalindegaard and Karl-Svard authored Feb 21, 2024
1 parent c65210d commit be83d4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cg_lims/EPPs/files/file_to_udf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ def set_udfs(well_field: str, value_field: str, udf: str, well_dict: dict, resul
if value is None:
error_msg.append("Some samples in the file hade missing values.")
continue
elif well not in well_dict:
LOG.info(f"Well {well} was not found in the step. Skipping!")
continue
art = well_dict[well]
try:
art.udf[udf] = str(value)
Expand Down

0 comments on commit be83d4d

Please sign in to comment.