mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-08 13:43:35 +00:00
make profile command fail soft on error
This commit is contained in:
2
gam.py
2
gam.py
@ -1478,7 +1478,7 @@ def doProfile(users):
|
|||||||
elif user.find(u'@') == -1:
|
elif user.find(u'@') == -1:
|
||||||
user = u'%s@%s' % (user, domain)
|
user = u'%s@%s' % (user, domain)
|
||||||
print u'Setting Profile Sharing to %s for %s (%s of %s)' % (body[u'includeInGlobalAddressList'], user, i, count)
|
print u'Setting Profile Sharing to %s for %s (%s of %s)' % (body[u'includeInGlobalAddressList'], user, i, count)
|
||||||
callGAPI(service=cd.users(), function=u'patch', userKey=user, body=body)
|
callGAPI(service=cd.users(), function=u'patch', soft_errors=True, userKey=user, body=body)
|
||||||
i += 1
|
i += 1
|
||||||
|
|
||||||
def showProfile(users):
|
def showProfile(users):
|
||||||
|
Reference in New Issue
Block a user