From 37288ebb0ae12a3c214479ff226e25b4c5c2c073 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Wed, 12 Dec 2018 11:02:07 +0100 Subject: [PATCH] log_read: correct error message --- src/log_read.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/log_read.py b/src/log_read.py index 7fb5571..ce3e71b 100644 --- a/src/log_read.py +++ b/src/log_read.py @@ -346,8 +346,9 @@ class LineReader(IterativeReader): if line[-1] in LINE_SPLITTERS: result.append((description, line.rstrip(LINE_SPLITTERS), idx)) elif should_be_no_new_lines: - raise ValueError('line splitters are not compatible with' - 'str.splitlines!') + # self-check + raise ValueError('Programming error: something went wrong with ' + 'line splitting/buffering.') else: self.line_buffers[idx] = line should_be_no_new_lines = True # (this should be the last) -- 1.7.1