shotgunsoftware / python-api

A Python-based library for accessing Flow Production Tracking API.
https://developer.shotgridsoftware.com/python-api
Other
306 stars 198 forks source link

URLError doesnt have code attribute #246

Open francoisgfx opened 3 years ago

francoisgfx commented 3 years ago

I dont believe URLError have a code attribue. HTTPError does though. HTTPError inherit from URLError. So I have doubt this case can happen here : https://github.com/shotgunsoftware/python-api/blob/master/shotgun_api3/shotgun.py#L2668

https://docs.python.org/3/library/urllib.error.html#urllib.error.URLError