diff --git a/nsupdate/management/commands/users.py b/nsupdate/management/commands/users.py index 96a9420..3afeb6e 100644 --- a/nsupdate/management/commands/users.py +++ b/nsupdate/management/commands/users.py @@ -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")