ovh / python-ovh

Thin wrapper around OVH's APIs. Handles all the hard work including credential creation and requests signing.
https://pypi.org/project/ovh/
Other
298 stars 81 forks source link

feat(query-id): add query_id property to exceptions #37

Closed rbeuque74 closed 7 years ago

rbeuque74 commented 7 years ago

When it comes to API Exceptions, customers should be able to provide debugging informations in order to be able to track what's wrong on the other side of the API.

X-OVH-QUERYID is here for that. I think we should display that property in APIError class

yadutaf commented 7 years ago

Oh, oh. Il like it ! Do you think we could add the queryid to the default exception message so that it's printed on the console in case of crash ?

rbeuque74 commented 7 years ago

Done.

yadutaf commented 7 years ago

Looks good !