Skip to content

Commit 04c405a

Browse files
committed
Merged in [18909] from housley@vigilsec.com:
Log Unicode exception instead of printing them to the console when they occur building the email alias files. - Legacy-Id: 18923 Note: SVN reference [18909] has been migrated to Git commit 44d8caa
2 parents ac6bcda + 44d8caa commit 04c405a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/utils/aliases.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818

1919
from django.conf import settings
20+
from ietf.utils.log import log
2021

2122
import debug # pyflakes:ignore
2223

@@ -75,7 +76,7 @@ def dump_sublist(afile, vfile, alias, adomains, vdomain, emails):
7576
# If there's unicode in email address, something is badly
7677
# wrong and we just silently punt
7778
# XXX - is there better approach?
78-
print('# Error encoding', alias, repr(emails))
79+
log('Error encoding email address for an %s alias: %s' % (alias, repr(emails)))
7980
return []
8081
return emails
8182

0 commit comments

Comments
 (0)