don't set warn = True, it will be overwritten in the next line (#71682)

This commit is contained in:
Evgeni Golov 2020-09-12 09:58:09 +02:00 committed by GitHub
parent 59a240cd31
commit a10af345a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,6 @@ def to_safe_group_name(name, replacer="_", force=False, silent=False):
else: else:
if C.TRANSFORM_INVALID_GROUP_CHARS == 'never': if C.TRANSFORM_INVALID_GROUP_CHARS == 'never':
display.vvvv('Not replacing %s' % msg) display.vvvv('Not replacing %s' % msg)
warn = True
warn = 'Invalid characters were found in group names but not replaced, use -vvvv to see details' warn = 'Invalid characters were found in group names but not replaced, use -vvvv to see details'
if warn: if warn: