Skip to content
Browse files

stop annoying error emails

  • Loading branch information...
1 parent e2c22e5 commit c4c719fb1a172f0abb6bf5dca2a9b0f534d79db8 Justine Tunney committed Jun 19, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 occupywallst/views.py
View
5 occupywallst/views.py
@@ -545,7 +545,10 @@ def fightback_sig(request, pledgeid):
else:
thanks = False
count = db.Pledge.objects.count()
- pledge = db.Pledge.objects.get(id=pledgeid)
+ try:
+ pledge = db.Pledge.objects.get(id=pledgeid)
+ except db.Pledge.DoesNotExist:
+ raise Http404()
return render_to_response(
'occupywallst/fightback_sig.html', {"pledge": pledge,
"thanks": thanks,

0 comments on commit c4c719f

Please sign in to comment.
Something went wrong with that request. Please try again.