stravalib.client.ActivityUploader.update_from_response#

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

Updates internal state of object.

Parameters:
  • response (py:class:dict) – The response object (dict).

  • raise_exc (bool) –

Raises:

stravalib.exc.ActivityUploadFailed – If the response indicates an error and raise_exc is True. Whether to raise an exception if the response indicates an error state. (default True)