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:
parent
3a5eb40563
commit
7407bca728
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