fix exceptions handler in requests_wrapper
All exceptions are already handled in the parse_response method.
@@ -46,12 +46,7 @@ def parse_response(f):
def _req(fn, config, url, **kwargs):
default_kwargs, headers = requests_get_params(config)
kwargs.update(default_kwargs)
-
- try:
- r = fn(url, headers=headers, **kwargs)
- except (requests.exceptions.Timeout, requests.exceptions.ConnectionError):
- raise
- return r
+ return fn(url, headers=headers, **kwargs)
def post(config, url, data, **kwargs):
