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 be83d4d commit ce1d2b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cg_lims/EPPs/files/file_to_udf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def set_udfs(well_field: str, value_field: str, udf: str, well_dict: dict, resul
well = sample.get(well_field)
value = sample.get(value_field)
if value is None:
error_msg.append("Some samples in the file hade missing values.")
error_msg.append("Some samples in the file had missing values.")
LOG.info(f"Missing value for sample {sample} in well {well}. Skipping!")
continue
elif well not in well_dict:
LOG.info(f"Well {well} was not found in the step. Skipping!")
Expand Down

0 comments on commit ce1d2b2

Please sign in to comment.