fnp
/
django-cas-provider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f561c14
)
Added more specific exception handling. This clears up the LoginTicket issue we were...
author
deyk
<deyk@crossway.org>
Wed, 18 Jan 2012 21:52:09 +0000
(13:52 -0800)
committer
deyk
<deyk@crossway.org>
Wed, 18 Jan 2012 21:52:09 +0000
(13:52 -0800)
cas_provider/forms.py
patch
|
blob
|
history
diff --git
a/cas_provider/forms.py
b/cas_provider/forms.py
index
f40d18c
..
88d2926
100644
(file)
--- a/
cas_provider/forms.py
+++ b/
cas_provider/forms.py
@@
-33,7
+33,7
@@
class LoginForm(forms.Form):
lt = self.fields['lt'].initial()
try:
login_ticket = LoginTicket.objects.get(ticket=lt)
- except:
+ except
LoginTicket.DoesNotExist
:
raise forms.ValidationError("Login ticket expired. Please try again.")
else:
login_ticket.delete()