Merge pull request #958 from bookwyrm-social/user-notfound-error

Catch user not found errors in feed
This commit is contained in:
Mouse Reeve 2021-04-17 18:36:20 -07:00 committed by GitHub
commit a507ad0d6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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