Correct fix for notification get repo

The fix in #366 was wrong. Not sure how I tested it and it worked.
This commit is contained in:
Matt Jibson 2015-08-17 17:54:33 -04:00
parent 3a5eb40563
commit 7407bca728

View file

@ -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