about summary refs log tree commit diff
path: root/quality_control/parsing.py
diff options
context:
space:
mode:
Diffstat (limited to 'quality_control/parsing.py')
-rw-r--r--quality_control/parsing.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/quality_control/parsing.py b/quality_control/parsing.py
index f1d21fc..7a8185d 100644
--- a/quality_control/parsing.py
+++ b/quality_control/parsing.py
@@ -104,23 +104,22 @@ def collect_errors(
             if line_number == 1:
                 consistent_columns_checker = make_column_consistency_checker(
                     filename, line)
-                for error in __process_errors__(
-                        filename, line_number, line,
-                        partial(header_errors, strains=strains),
-                        errors):
-                    yield error
+                yield from __process_errors__(
+                    filename, line_number, line,
+                    partial(header_errors, strains=strains),
+                    errors)
 
             if line_number != 1:
-                col_consistency_error = consistent_columns_checker(line_number, line)
+                col_consistency_error = consistent_columns_checker(# pylint: disable=[possibly-used-before-assignment]
+                    line_number, line)
                 if col_consistency_error:
                     yield col_consistency_error
 
-                for error in __process_errors__(
+                yield from __process_errors__(
                         filename, line_number, line, (
                             average_errors if filetype == FileType.AVERAGE
                             else se_errors),
-                        errors):
-                    yield error
+                        errors)
 
             if update_progress:
                 update_progress(line_number, line)