Handle HTTPError from API and routing errors from flask.

Removed catching the HTTPError where applicable.
This commit is contained in:
Rebecca Law
2016-03-10 14:56:47 +00:00
parent f6d98b63ea
commit 735ca07dee
5 changed files with 28 additions and 14 deletions

View File

@@ -9,7 +9,6 @@ from flask_login import login_required
from app.main import main
from app.main.dao.services_dao import get_service_by_id
from app.main.dao import templates_dao
from notifications_python_client.errors import HTTPError
from app import job_api_client

View File

@@ -8,7 +8,6 @@ from flask import (
jsonify
)
from flask_login import login_required
from notifications_python_client.errors import HTTPError
from utils.template import Template
from app import job_api_client, notification_api_client