From c54a32096f58ff76e6e1d83fdf25505af96eb1ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20MOHIER?= Date: Wed, 10 May 2017 07:03:17 +0200 Subject: [PATCH] Set version as 0.9.1 --- alignak_backend_client/__init__.py | 2 +- alignak_backend_client/backend_client.py | 2 +- alignak_backend_client/client.py | 13 ++++++------- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/alignak_backend_client/__init__.py b/alignak_backend_client/__init__.py index 2aa878a..a66268d 100755 --- a/alignak_backend_client/__init__.py +++ b/alignak_backend_client/__init__.py @@ -9,7 +9,7 @@ """ # Application version and manifest -VERSION = (0, 9, 0) +VERSION = (0, 9, 1) __application__ = u"Alignak Backend client" __short_version__ = '.'.join((str(each) for each in VERSION[:2])) diff --git a/alignak_backend_client/backend_client.py b/alignak_backend_client/backend_client.py index 0592116..b818999 100755 --- a/alignak_backend_client/backend_client.py +++ b/alignak_backend_client/backend_client.py @@ -209,7 +209,7 @@ logger.setLevel('INFO') # Use the same version as the main alignak backend -__version__ = "0.9.0" +__version__ = "0.9.1" class BackendUpdate(object): diff --git a/alignak_backend_client/client.py b/alignak_backend_client/client.py index 322d3c2..02798fb 100755 --- a/alignak_backend_client/client.py +++ b/alignak_backend_client/client.py @@ -515,18 +515,17 @@ def post(self, endpoint, data, files=None, headers=None): ) resp = json.loads(response.content) logger.debug("post, response: %s", resp) - except ValueError as e: # pragma: no cover - should never happen now... - logger.error("Exception, error: %s", str(e)) - logger.error("traceback: %s", traceback.format_exc()) - raise BackendException(1003, "Exception: %s" % (str(e))) - + # except ValueError as e: # pragma: no cover - should never happen now... + # logger.error("Exception, error: %s", str(e)) + # logger.error("traceback: %s", traceback.format_exc()) + # raise BackendException(1003, "Exception: %s" % (str(e))) + # except RequestsConnectionError as e: logger.error("Backend connection error, error: %s", str(e)) raise BackendException(1000, "Backend connection error") except Exception as e: # pragma: no cover - should never happen now... - logger.error("Exception, error: %s", str(e)) - logger.error("traceback: %s", traceback.format_exc()) + logger.exception("Exception, error: %s", e) # resp = response logger.error( "Response is not JSON formatted: %d / %s", response.status_code, response.content