don't try to update non-existent readthroughs

This commit is contained in:
Hugh Rundle
2021-11-20 16:03:46 +11:00
parent af9768a2e3
commit 12810d8e34
2 changed files with 5 additions and 6 deletions

View File

@ -118,10 +118,11 @@ class CreateStatus(View):
status.save(created=created)
# update a readthrough, if needed
try:
edit_readthrough(request)
except Http404:
pass
if bool(request.POST.get("id")):
try:
edit_readthrough(request)
except Http404:
pass
# force page reload if this was triggered from 'move' button
if bool(request.POST.get("shelf")):