Added back in extra exception check
in case there are other exceptions that are non-AkismetError ones
This commit is contained in:
parent
71bf1e66cc
commit
4acd4f14bb
1 changed files with 3 additions and 0 deletions
|
@ -699,6 +699,9 @@ class PostStatus(models.Model):
|
|||
except Exception as e:
|
||||
logger.error("Error while checking Akismet", extra={"exception": e})
|
||||
is_spam = None
|
||||
except Exception as e:
|
||||
logger.error("Error while checking Akismet", extra={"exception": e})
|
||||
is_spam = None
|
||||
|
||||
return is_spam
|
||||
|
||||
|
|
Reference in a new issue