This commit is contained in:
Mouse Reeve 2021-02-23 13:05:43 -08:00
parent 364b053d9a
commit e6b4212e6b

View file

@ -13,7 +13,7 @@ def get_user_from_username(viewer, username):
''' helper function to resolve a localname or a username to a user '''
# raises DoesNotExist if user is now found
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:
return models.User.viewer_aware_objects(viewer).get(username=username)