forked from mirrors/bookwyrm
Typo fix
This commit is contained in:
parent
364b053d9a
commit
e6b4212e6b
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ def get_user_from_username(viewer, username):
|
||||||
''' helper function to resolve a localname or a username to a user '''
|
''' helper function to resolve a localname or a username to a user '''
|
||||||
# raises DoesNotExist if user is now found
|
# raises DoesNotExist if user is now found
|
||||||
try:
|
try:
|
||||||
return models.User.viwer_aware_objects(viewer).get(localname=username)
|
return models.User.viewer_aware_objects(viewer).get(localname=username)
|
||||||
except models.User.DoesNotExist:
|
except models.User.DoesNotExist:
|
||||||
return models.User.viewer_aware_objects(viewer).get(username=username)
|
return models.User.viewer_aware_objects(viewer).get(username=username)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue