From 5f4557558f45877fe266a7669f26e37aee656e57 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Mon, 20 May 2024 09:53:06 +0200 Subject: [PATCH] Downgrade count lines error to warning --- lib/galaxy/datatypes/data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/datatypes/data.py b/lib/galaxy/datatypes/data.py index 1c8c53827839..00b6368d586b 100644 --- a/lib/galaxy/datatypes/data.py +++ b/lib/galaxy/datatypes/data.py @@ -1049,7 +1049,7 @@ def estimate_file_lines(self, dataset: DatasetProtocol) -> Optional[int]: sample_lines = dataset_read.count("\n") return int(sample_lines * (float(dataset.get_size()) / float(sample_size))) except UnicodeDecodeError: - log.error(f"Unable to estimate lines in file {dataset.get_file_name()}") + log.warning(f"Unable to estimate lines in file {dataset.get_file_name()}, likely not a text file.") return None def count_data_lines(self, dataset: HasFileName) -> Optional[int]: @@ -1069,7 +1069,7 @@ def count_data_lines(self, dataset: HasFileName) -> Optional[int]: if line and not line.startswith("#"): data_lines += 1 except UnicodeDecodeError: - log.error(f"Unable to count lines in file {dataset.get_file_name()}") + log.warning(f"Unable to count lines in file {dataset.get_file_name()}, likely not a text file.") return None return data_lines