diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2016-01-31 18:59:36 +0100 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2016-01-31 18:59:36 +0100 |
commit | 64964d2fcfa73e18b1316d788bacd11e2180bb7d (patch) | |
tree | 9c11cbd18ae6bf3a8c852c5e66a7eeb0e131c115 /src/conf.py | |
parent | saving categ (diff) | |
download | newspipe-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.py | 4 |
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, |