1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 02:10:24 +00:00

Fix user get bug

This commit is contained in:
xiez
2012-08-15 19:40:28 +08:00
parent 31bc49b464
commit 85d39e2dda
2 changed files with 4 additions and 1 deletions

View File

@@ -36,6 +36,9 @@ class UserManager(object):
return self.get(email=email)
def get(self, email=None, id=None):
if not email and not id:
raise User.DoesNotExist, 'User matching query does not exits.'
if email:
emailuser = ccnet_threaded_rpc.get_emailuser(email)
if id: