Skip to content

Commit

Permalink
some more stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl-Svard committed Jan 13, 2025
1 parent 284390c commit 8eabfdc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cg_lims/EPPs/files/parsers/file_to_udf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python

import csv
import logging
import sys
Expand Down Expand Up @@ -60,7 +58,7 @@ def set_udfs_from_file(
continue
artifact: Artifact = well_dict[well]
value: Any = sample.get(value_field)
if value is None:
if not value:
error_msg.append("Some samples in the file had missing values.")
LOG.info(f"Missing value for sample {sample} in well {well}. Skipping!")
continue
Expand Down Expand Up @@ -112,7 +110,7 @@ def set_udfs(

if error_message:
error_string: str = " ".join(list(set(error_message)))
raise MissingArtifactError(error_string)
raise MissingArtifactError(error_string + " See the log for details.")


@click.command()
Expand Down

0 comments on commit 8eabfdc

Please sign in to comment.