Skip to content

Commit 47170da

Browse files
committed
increase akismet default timeout
1 parent eee15e3 commit 47170da

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Allura/allura/lib/spam/akismetfilter.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# under the License.
1717

1818
import logging
19+
import os
1920

2021
from tg import request
2122
from tg import tmpl_context as c
@@ -25,6 +26,10 @@
2526
from allura.lib.spam import SpamFilter
2627

2728
try:
29+
if not os.environ.get('PYTHON_AKISMET_TIMEOUT'):
30+
# default would be 1 otherwise. Must be set before import akismet
31+
os.environ['PYTHON_AKISMET_TIMEOUT'] = '3'
32+
2833
import akismet
2934
AKISMET_AVAILABLE = True
3035
except ImportError:

0 commit comments

Comments
 (0)