remove unnecessary unique index

primary key provides the same control. also catch the right exception
in the related command
This commit is contained in:
Leo Hemsted
2019-05-16 14:36:17 +01:00
parent 907e13da87
commit 9d415cd292
3 changed files with 23 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ import itertools
from click_datetime import Datetime as click_dt
from flask import current_app, json
from notifications_utils.template import SMSMessageTemplate
from psycopg2._psycopg import IntegrityError
from sqlalchemy.exc import IntegrityError
from sqlalchemy.orm.exc import NoResultFound
from notifications_utils.statsd_decorators import statsd