summaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-rw-r--r--devel/management/commands/reporead.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py
index 777ebb9..21021b3 100644
--- a/devel/management/commands/reporead.py
+++ b/devel/management/commands/reporead.py
@@ -161,7 +161,7 @@ def find_user(userstring):
for token in name.split():
name_q &= (Q(first_name__icontains=token) |
Q(last_name__icontains=token))
- user = User.objects.get(name_q)
+ return User.objects.get(name_q)
for matcher in (user_email, profile_email, user_name):
try: