Clarify warning when adding suffix

This commit is contained in:
Jan Petykiewicz 2019-05-15 23:51:17 -07:00
parent 3ff9a8a506
commit 4bd5542ce9

View File

@ -531,7 +531,8 @@ def _disambiguate_pattern_names(patterns):
if sanitized_name == '':
logger.warning('Empty pattern name saved as "{}"'.format(suffixed_name))
elif suffixed_name != sanitized_name:
logger.warning('Pattern name "{}" appears multiple times; renaming to "{}"'.format(pat.name, suffixed_name))
logger.warning('Pattern name "{}" ({}) appears multiple times; renaming to "{}"'.format(
pat.name, sanitized_name, suffixed_name))
encoded_name = suffixed_name.encode('ASCII')
if len(encoded_name) == 0: