Skip to content

Commit 2c03de9

Browse files
committed
Changing the warning message
1 parent 5ff115e commit 2c03de9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

qiita_db/metadata_template/base_metadata_template.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -703,9 +703,9 @@ def _add_common_extend_steps_to_queue(self, md_template, conn_handler,
703703

704704
if existing_samples:
705705
warnings.warn(
706-
"No values have been modified for samples '%s'. However, "
707-
"the following columns have been added to them: '%s'"
708-
% (", ".join(existing_samples), ", ".join(new_cols)),
706+
"No values have been modified for existing samples (%s). "
707+
"However, the following columns have been added to them: "
708+
"'%s'" % (len(existing_samples), ", ".join(new_cols)),
709709
QiitaDBWarning)
710710
# The values for the new columns are the only ones that get
711711
# added to the database. None of the existing values will be
@@ -727,8 +727,8 @@ def _add_common_extend_steps_to_queue(self, md_template, conn_handler,
727727
conn_handler.add_to_queue(queue_name, sql, values, many=True)
728728
elif existing_samples:
729729
warnings.warn(
730-
"The following samples already exist in the template and "
731-
"will be ignored: %s" % ", ".join(existing_samples),
730+
"%d samples already exist in the template and "
731+
"their values won't be modified" % len(existing_samples),
732732
QiitaDBWarning)
733733

734734
if new_samples:

0 commit comments

Comments
 (0)