simvue-io / python-api

Simvue Python API
https://docs.simvue.io
Apache License 2.0
4 stars 0 forks source link

AttributeError: 'HTTPError' object has no attribute 'status_code' #561

Closed alahiff closed 2 weeks ago

alahiff commented 2 weeks ago

With the version of the Simvue client in PyPi currently:

  File "/home/alahiff/client/20240919/venv/lib/python3.10/site-packages/simvue/api.py", line 52, in is_retryable_exception
    return exception.status_code in RETRY_STATUS_CODES
AttributeError: 'HTTPError' object has no attribute 'status_code'
kzscisoft commented 2 weeks ago

This has been resolved in v1.1

https://github.com/simvue-io/python-api/blob/30b9b9d51d142fb92343ebbc8d7ae3fdd0c9eecf/simvue/api.py#L52