Fix NoSuchUser being raised with None due to username/id

master
voussoir 2017-03-09 23:54:45 -08:00
parent faf893a428
commit 072e9a7430
1 changed files with 1 additions and 1 deletions

View File

@ -987,7 +987,7 @@ class PDBUserMixin:
if fetch is not None:
return objects.User(self, fetch)
else:
raise exceptions.NoSuchUser(username)
raise exceptions.NoSuchUser(username or id)
def get_user_id_or_none(self, user):
'''