mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-08 21:53:36 +00:00
Handle unknown UID in datatransfer commands
This commit is contained in:
@ -1811,8 +1811,7 @@ def convertUserIDtoEmail(uid):
|
|||||||
try:
|
try:
|
||||||
return callGAPI(cd.users(), u'get', throw_reasons=[u'notFound'], userKey=uid, fields=u'primaryEmail')[u'primaryEmail']
|
return callGAPI(cd.users(), u'get', throw_reasons=[u'notFound'], userKey=uid, fields=u'primaryEmail')[u'primaryEmail']
|
||||||
except googleapiclient.errors.HttpError:
|
except googleapiclient.errors.HttpError:
|
||||||
print u'ERROR: no such user %s' % uid
|
return u'uid:{0}'.format(uid)
|
||||||
sys.exit(3)
|
|
||||||
|
|
||||||
def doCreateDataTranfer():
|
def doCreateDataTranfer():
|
||||||
dt = buildGAPIObject(u'datatransfer')
|
dt = buildGAPIObject(u'datatransfer')
|
||||||
|
Reference in New Issue
Block a user