mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 08:55:15 -05:00
remove unnecessary unique index
primary key provides the same control. also catch the right exception in the related command
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user