From 2d1052766d7b8196b734e62965ce8974b6230a7e Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 14 Oct 2021 17:32:38 -0700 Subject: [PATCH] Fixes undefined variable error --- bookwyrm/views/status.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bookwyrm/views/status.py b/bookwyrm/views/status.py index f1abeda13..d1f2fd1ef 100644 --- a/bookwyrm/views/status.py +++ b/bookwyrm/views/status.py @@ -54,6 +54,7 @@ class CreateStatus(View): def post(self, request, status_type, existing_status_id=None): """create status of whatever type""" + existing_status = None if existing_status_id: existing_status = get_object_or_404( models.Status.objects.select_subclasses(), id=existing_status_id