We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46c0a0e commit 31a1ca1Copy full SHA for 31a1ca1
handlers/bloog/blog.py
@@ -243,9 +243,9 @@ def process_comment_submission(handler, article):
243
244
# If we aren't administrator, abort if bad captcha
245
if not users.is_current_user_admin():
246
- if property_hash['captcha'] != get_captcha(article.key()):
+ if property_hash.get('captcha', None) != get_captcha(article.key()):
247
logging.info("Received captcha (%s) != %s",
248
- property_hash['captcha'],
+ property_hash.get('captcha', None),
249
get_captcha(article.key()))
250
handler.error(401) # Unauthorized
251
return
0 commit comments