Catch user not found errors in feed

This commit is contained in:
Mouse Reeve 2021-04-17 18:23:33 -07:00
parent a9deea7b87
commit 2914eea281

View file

@ -105,7 +105,7 @@ class Status(View):
status = models.Status.objects.select_subclasses().get(
id=status_id, deleted=False
)
except (ValueError, models.Status.DoesNotExist):
except (ValueError, models.Status.DoesNotExist, models.User.DoesNotExist):
return HttpResponseNotFound()
# the url should have the poster's username in it