aboutsummaryrefslogtreecommitdiff
path: root/src/conf.py
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2016-01-31 18:59:36 +0100
committerFrançois Schmidts <francois.schmidts@gmail.com>2016-01-31 18:59:36 +0100
commit64964d2fcfa73e18b1316d788bacd11e2180bb7d (patch)
tree9c11cbd18ae6bf3a8c852c5e66a7eeb0e131c115 /src/conf.py
parentsaving categ (diff)
downloadnewspipe-64964d2fcfa73e18b1316d788bacd11e2180bb7d.tar.gz
newspipe-64964d2fcfa73e18b1316d788bacd11e2180bb7d.tar.bz2
newspipe-64964d2fcfa73e18b1316d788bacd11e2180bb7d.zip
handling errors from one page app
Diffstat (limited to 'src/conf.py')
-rw-r--r--src/conf.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/conf.py b/src/conf.py
index 7db65fd1..8acdeef6 100644
--- a/src/conf.py
+++ b/src/conf.py
@@ -92,7 +92,9 @@ USER_AGENT = config.get('crawler', 'user_agent')
RESOLVE_ARTICLE_URL = config.getboolean('crawler',
'resolve_article_url')
DEFAULT_MAX_ERROR = config.getint('crawler',
- 'default_max_error')
+ 'default_max_error')
+ERROR_THRESHOLD = int(DEFAULT_MAX_ERROR / 2)
+
CRAWLING_METHOD = config.get('crawler', 'crawling_method')
LOG_LEVEL = {'debug': logging.DEBUG,
bgstack15