Fix NoSuchUser being raised with None due to username/id

This commit is contained in:
voussoir 2017-03-09 23:54:45 -08:00
parent faf893a428
commit 072e9a7430

View file

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