Messages with unresolved references don't cause an error for the sender.

thingy_objects
Marnanel Thurman 2018-09-23 21:57:50 +01:00
rodzic 27dfb4ac27
commit e061aba382
1 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -1,4 +1,4 @@
from django_kepi import ATSIGN_CONTEXT
from django_kepi import ATSIGN_CONTEXT, NeedToFetchException
from django.shortcuts import render, get_object_or_404
import django.views
from django.http import HttpResponse, JsonResponse
@ -148,6 +148,12 @@ class InboxView(django.views.View):
)
capture.save()
try:
capture.deploy()
except NeedToFetchException:
# we'll work it out later
pass
return HttpResponse(
status = 200,
reason = 'Thank you',