From 80590a646b8014629491888c3cd02a8b76f70c56 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Mon, 1 Oct 2018 15:50:48 +0200 Subject: [PATCH] django-admin.py users: initialize log_msg --- nsupdate/management/commands/users.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nsupdate/management/commands/users.py b/nsupdate/management/commands/users.py index 9ed1c60..294b76c 100644 --- a/nsupdate/management/commands/users.py +++ b/nsupdate/management/commands/users.py @@ -77,6 +77,7 @@ class Command(BaseCommand): print_stats("before") for u in User.objects.all(): user = "%s <%s>" % (u.username, u.email) + log_msg = None if stale_check: log_msg = check_staleness(u) if log_msg: