Update annual_summary.py

This commit is contained in:
Joachim 2022-01-02 17:52:49 +01:00
parent fd8423b73c
commit 6e8a29aebf

View file

@ -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":