Merge pull request #377 from ThomasWaldmann/fix-crash

add ugly workaround for crash in django-admin users --stale-check
This commit is contained in:
TW 2018-10-14 15:58:30 +02:00 committed by GitHub
commit e2ea05be04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,5 +82,8 @@ class Command(BaseCommand):
log_msg = check_staleness(u)
if log_msg:
log_msg = log_msg % dict(user=user)
self.stdout.write(log_msg)
try:
self.stdout.write(log_msg)
except UnicodeError:
pass
print_stats("after")