From f178c8b3a17cd6013b95c1330d28aa4ac2ef125b Mon Sep 17 00:00:00 2001 From: Timm Fitschen <t.fitschen@indiscale.com> Date: Fri, 24 Jul 2020 11:43:12 +0200 Subject: [PATCH] REVIEW: fix table_importer --- src/caosadvancedtools/table_importer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/caosadvancedtools/table_importer.py b/src/caosadvancedtools/table_importer.py index 0e6319ed..d19f1865 100755 --- a/src/caosadvancedtools/table_importer.py +++ b/src/caosadvancedtools/table_importer.py @@ -101,12 +101,12 @@ class XLSImporter(object): for index, row in subtable.iterrows(): element = tuple(row) if element in uniques: - errmssg = ( + errmsg = ( "The {}. row contains the values '{}'.\nThis value " "combination should be unique, but was used in a previous " "row in\n").format(index+1, element) - errmssg += "{}.".format(filename) if filename else "the file." - errmssg += "\nThis row will be ignored!" + errmsg += "{}.".format(filename) if filename else "the file." + errmsg += "\nThis row will be ignored!" logger.warning(errmsg, extra={'identifier': filename, 'category': "inconsistency"}) -- GitLab