forked from mirrors/bookwyrm
Catch user not found errors in feed
This commit is contained in:
parent
a9deea7b87
commit
2914eea281
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ class Status(View):
|
||||||
status = models.Status.objects.select_subclasses().get(
|
status = models.Status.objects.select_subclasses().get(
|
||||||
id=status_id, deleted=False
|
id=status_id, deleted=False
|
||||||
)
|
)
|
||||||
except (ValueError, models.Status.DoesNotExist):
|
except (ValueError, models.Status.DoesNotExist, models.User.DoesNotExist):
|
||||||
return HttpResponseNotFound()
|
return HttpResponseNotFound()
|
||||||
|
|
||||||
# the url should have the poster's username in it
|
# the url should have the poster's username in it
|
||||||
|
|
Loading…
Reference in a new issue