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:
|
||||
return callGAPI(cd.users(), u'get', throw_reasons=[u'notFound'], userKey=uid, fields=u'primaryEmail')[u'primaryEmail']
|
||||
except googleapiclient.errors.HttpError:
|
||||
print u'ERROR: no such user %s' % uid
|
||||
sys.exit(3)
|
||||
return u'uid:{0}'.format(uid)
|
||||
|
||||
def doCreateDataTranfer():
|
||||
dt = buildGAPIObject(u'datatransfer')
|
||||
|
Reference in New Issue
Block a user