Merge pull request #377 from ThomasWaldmann/fix-crash
add ugly workaround for crash in django-admin users --stale-check
This commit is contained in:
commit
e2ea05be04
@ -82,5 +82,8 @@ class Command(BaseCommand):
|
|||||||
log_msg = check_staleness(u)
|
log_msg = check_staleness(u)
|
||||||
if log_msg:
|
if log_msg:
|
||||||
log_msg = log_msg % dict(user=user)
|
log_msg = log_msg % dict(user=user)
|
||||||
self.stdout.write(log_msg)
|
try:
|
||||||
|
self.stdout.write(log_msg)
|
||||||
|
except UnicodeError:
|
||||||
|
pass
|
||||||
print_stats("after")
|
print_stats("after")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user