mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
add tests for service_api_client
This commit is contained in:
@@ -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
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user