diff --git a/dynastie/views.py b/dynastie/views.py index 6e4bdaf..1f385b5 100755 --- a/dynastie/views.py +++ b/dynastie/views.py @@ -808,7 +808,7 @@ def add_comment(request, post_id, parent_id): ref = request.META['HTTP_REFERER'] # Anti robot !! - if request.POST['email'] != '': + if not 'email' in request.POST or request.POST['email'] != '': if 'HTTP_X_REAL_IP' in request.META: print 'Dynastie : fucking robot %s' % (request.META['HTTP_X_REAL_IP']) else: