Merge pull request #375 from mjibson/fix-notification-get-repo-2
Correct fix for notification get repo
This commit is contained in:
commit
c3518c2c99
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ from endpoints.notificationevent import NotificationEvent, InvalidNotificationEv
|
||||||
from workers.queueworker import QueueWorker, JobException
|
from workers.queueworker import QueueWorker, JobException
|
||||||
|
|
||||||
from data import model
|
from data import model
|
||||||
from data.database import RepositoryNotification
|
from data.model import InvalidNotificationException
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ class NotificationWorker(QueueWorker):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
notification = model.notification.get_repo_notification(notification_uuid)
|
notification = model.notification.get_repo_notification(notification_uuid)
|
||||||
except RepositoryNotification.DoesNotExist:
|
except InvalidNotificationException:
|
||||||
# Probably deleted.
|
# Probably deleted.
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Reference in a new issue