views: fix typo in exception name
This commit is contained in:
parent
7fa7cad775
commit
24af6fb3dd
|
@ -17,7 +17,7 @@ def index(request):
|
|||
logger = logging.getLogger(__name__)
|
||||
try:
|
||||
restriction = models.ProfileUpdate.objects.get(user=request.user)
|
||||
except models.ProfileUpdate:
|
||||
except models.ProfileUpdate.DoesNotExist:
|
||||
return continue_to_next_url(request)
|
||||
if restriction.updated is not None and \
|
||||
(now() - restriction.updated) >= timedelta(days=7):
|
||||
|
|
Reference in New Issue