add tests for service_api_client

This commit is contained in:
Leo Hemsted
2016-07-21 17:32:28 +01:00
parent 0cc2a90a1a
commit 6ff77c995e
2 changed files with 17 additions and 1 deletions

View File

@@ -325,7 +325,7 @@ def register_errorhandlers(application):
@application.errorhandler(HTTPError)
def render_http_error(error):
application.logger.error("API {} failed with status {} message {}".format(
error.response.url,
error.response.url if error.response else 'unknown',
error.status_code,
error.message
))