Added back in extra exception check

in case there are other exceptions that are non-AkismetError ones
This commit is contained in:
Matthew Taylor 2014-09-05 16:07:59 -04:00
parent 71bf1e66cc
commit 4acd4f14bb

View file

@ -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