From 6e8a29aebfa387b968860a8b3fc769b15ee419d6 Mon Sep 17 00:00:00 2001 From: Joachim Date: Sun, 2 Jan 2022 17:52:49 +0100 Subject: [PATCH] Update annual_summary.py --- bookwyrm/views/annual_summary.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bookwyrm/views/annual_summary.py b/bookwyrm/views/annual_summary.py index 7e8ff0b13..5d8e14089 100644 --- a/bookwyrm/views/annual_summary.py +++ b/bookwyrm/views/annual_summary.py @@ -24,7 +24,7 @@ LAST_DAY = 15 class AnnualSummary(View): """display a summary of the year for the current user""" - def get(self, request, username, year): # pylint: disable=too-many-locals + def get(self, request, username, year): # pylint: disable=too-many-locals """get response""" user = get_user_from_username(request.user, username) @@ -219,7 +219,7 @@ def get_goal_status(user, year): try: goal = models.AnnualGoal.objects.get(user=user, year=year) - except ObjectDoesNotExist: + except models.AnnualGoal.DoesNotExist: return None if goal.privacy != "public":