Skip to content
Snippets Groups Projects
Verified Commit f178c8b3 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

REVIEW: fix table_importer

parent 4937db40
No related branches found
No related tags found
1 merge request!22Release 0.3
......@@ -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"})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment