Don't fail if AppSession is not set
This commit is contained in:
parent
dbf42a0365
commit
9f20d23a07
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class ReverifyView(TitleMixin, LoginView):
|
||||||
app_session = AppSession.objects.get(id=self.request.session["AppSession"])
|
app_session = AppSession.objects.get(id=self.request.session["AppSession"])
|
||||||
app_session.used = True
|
app_session.used = True
|
||||||
app_session.save()
|
app_session.save()
|
||||||
except AppSession.DoesNotExist:
|
except (AppSession.DoesNotExist, KeyError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
return HttpResponseRedirect(self.get_success_url())
|
return HttpResponseRedirect(self.get_success_url())
|
Loading…
Reference in a new issue