Skip to content

Commit

Permalink
Set version as 0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mohierf committed May 10, 2017
1 parent 404ad15 commit c54a320
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion alignak_backend_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]))
Expand Down
2 changes: 1 addition & 1 deletion alignak_backend_client/backend_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
13 changes: 6 additions & 7 deletions alignak_backend_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c54a320

Please sign in to comment.