aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/qc.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/qc.py b/scripts/qc.py
index 9bad55e..de01bb7 100644
--- a/scripts/qc.py
+++ b/scripts/qc.py
@@ -6,8 +6,8 @@ from typing import Union, Callable
import magic
-from quality_control.errors import InvalidValue
from quality_control.utils import make_progress_calculator
+from quality_control.errors import InvalidValue, DuplicateHeading
from quality_control.parsing import (
take,
FileType,
@@ -77,7 +77,9 @@ def print_errors(errors, verbose):
for error in errors:
cols = (
error.column if isinstance(error, InvalidValue)
- else ", ".join(str(col) for col in error.columns))
+ else (", ".join(str(col) for col in error.columns)
+ if isinstance(error, DuplicateHeading)
+ else "-"))
errors_exist = True
print(f"{starter}{error.line}\t{cols}\t{error.message}")