keystoneauth/keystoneauth1
Eric Fried 51bfa030b1 raise_exc default in Adapter
It can be annoying to have to say raise_exc=False (or use try/except) on
every call when talking to an API where 4xx response codes are
useful/normal/informative or where the preferred coding style is to use
conditionals rather than try/except.

With this change, the Adapter constructor takes a new kwarg, raise_exc.
It defaults to None, and the existing behavior is unchanged.  If set to
a boolean value, that is used as the default for requests.  Specifying
raise_exc to the primitives (get, head, put, post, patch, delete,
request) at any point along the chain will still take precedence.

Change-Id: Ie291c3cb891467728d8ca33cf62afdab37c82f34
Closes-Bug: #1776501
2018-06-12 10:48:39 -05:00
..
access Implement service_type alias lookups 2018-05-03 15:28:50 -05:00
exceptions Infer version from old versioned service type aliases 2018-05-03 15:28:54 -05:00
extras Mark SAML loader properties as required 2017-11-29 14:57:38 +11:00
fixture Implement system scope 2018-01-17 15:50:11 +00:00
hacking Move to the keystoneauth1 namespace 2015-06-25 16:48:54 -07:00
identity Merge "Return the endpoint_override from EndpointData" 2018-05-16 21:52:28 +00:00
loading Add oslo.config option for split-loggers 2018-05-16 15:42:03 -05:00
tests raise_exc default in Adapter 2018-06-12 10:48:39 -05:00
__init__.py Provide a RFC 7231 compliant user agent string 2015-12-15 16:45:17 -06:00
_utils.py Disables TCP_KEEPCNT when using Windows Subsystem for Linux 2016-08-23 03:36:45 +00:00
adapter.py raise_exc default in Adapter 2018-06-12 10:48:39 -05:00
discover.py Expose version_between as a real function 2018-05-15 15:11:12 -05:00
noauth.py Make none auth usable in CLI 2017-10-27 18:46:14 +03:00
plugin.py Merge "Add version discovery support to BaseAuthPlugin" 2017-10-06 17:11:08 +00:00
service_token.py Add a service token wrapper 2016-10-11 14:14:40 +11:00
session.py Add optional support for retrying certain HTTP codes 2018-05-29 14:54:56 +02:00
token_endpoint.py Add version discovery support to BaseAuthPlugin 2017-09-06 15:43:30 -05:00