make profile command fail soft on error

This commit is contained in:
Jay Lee
2014-10-03 05:52:58 -04:00
parent 00dd368c08
commit b679cab397

2
gam.py
View File

@ -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):