def _submit_update_form(self, updates, exceptions_raised):
    update_case_blocks = self.create_case_blocks(updates)
    if (not update_case_blocks):
        return exceptions_raised
    for attempt in range(MAX_RESCUE_EXCEPTIONS_ON_UPDATE):
        try:
            submit_case_blocks(update_case_blocks, DOMAIN, user_id=SYSTEM_USER_ID)
        except Exception as e:
            exc = sys.exc_info()
            exceptions_raised += 1
            if self.log_progress:
                print(('rescuing exception %s %s' % (exceptions_raised, str(e))))
            if (exceptions_raised > MAX_RESCUE_EXCEPTIONS_ON_UPDATE):
                six.reraise(*exc)
            else:
                time.sleep(60)
        else:
            break
    return exceptions_raised
def _submit_update_form(self, updates, exceptions_raised):
    update_case_blocks = self.create_case_blocks(updates)
    if (not update_case_blocks):
        return exceptions_raised
    for attempt in range(MAX_RESCUE_EXCEPTIONS_ON_UPDATE):
        try:
            submit_case_blocks(update_case_blocks, DOMAIN, user_id=SYSTEM_USER_ID)
        except Exception as e:
            exc = sys.exc_info()
            exceptions_raised += 1
            if self.log_progress:
                print(('rescuing exception %s %s' % (exceptions_raised, str(e))))
            if (exceptions_raised > MAX_RESCUE_EXCEPTIONS_ON_UPDATE):
                six.reraise(*exc)
            else:
                time.sleep(60)
        else:
            break
    return exceptions_raised