Use a variable that exists...
This commit is contained in:
parent
622a0836a8
commit
1d93a7b59f
1 changed files with 1 additions and 1 deletions
|
@ -686,7 +686,7 @@ class PostStatus(models.Model):
|
||||||
is_spam = None
|
is_spam = None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
is_spam = akismet_api.comment_check(body, data)
|
is_spam = akismet_api.comment_check(content, data)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error("Error while checking Akismet", extra={"exception": e})
|
logger.error("Error while checking Akismet", extra={"exception": e})
|
||||||
is_spam = None
|
is_spam = None
|
||||||
|
|
Reference in a new issue