Merge pull request #375 from mjibson/fix-notification-get-repo-2

Correct fix for notification get repo
This commit is contained in:
Matt Jibson 2015-08-18 11:40:46 -04:00
commit c3518c2c99

View file

@ -7,7 +7,7 @@ from endpoints.notificationevent import NotificationEvent, InvalidNotificationEv
from workers.queueworker import QueueWorker, JobException
from data import model
from data.database import RepositoryNotification
from data.model import InvalidNotificationException
logger = logging.getLogger(__name__)
@ -17,7 +17,7 @@ class NotificationWorker(QueueWorker):
try:
notification = model.notification.get_repo_notification(notification_uuid)
except RepositoryNotification.DoesNotExist:
except InvalidNotificationException:
# Probably deleted.
return