stravalib.client.ActivityUploader.update_from_response

ActivityUploader.update_from_response(response, raise_exc=True)[source]

Updates internal state of object.

Parameters
  • response (dict) – The response object (dict).

  • raise_exc (bool) – Whether to raise an exception if the response indicates an error state. (default True)

Raises

stravalib.exc.ActivityUploadFailed – If the response indicates an error and raise_exc is True.