Clarify warning when adding suffix
This commit is contained in:
parent
3ff9a8a506
commit
4bd5542ce9
@ -531,7 +531,8 @@ def _disambiguate_pattern_names(patterns):
|
|||||||
if sanitized_name == '':
|
if sanitized_name == '':
|
||||||
logger.warning('Empty pattern name saved as "{}"'.format(suffixed_name))
|
logger.warning('Empty pattern name saved as "{}"'.format(suffixed_name))
|
||||||
elif suffixed_name != sanitized_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')
|
encoded_name = suffixed_name.encode('ASCII')
|
||||||
if len(encoded_name) == 0:
|
if len(encoded_name) == 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user