aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2017-04-06 11:13:58 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2017-04-06 11:13:58 +0200
commit4ce3842e666c07992ebdc454c1cf22256dc21a58 (patch)
tree5881bef187f29c3321ad530cab62dbc0c03ef901 /src
parentthere is something strange with the Heroku form. (diff)
downloadnewspipe-4ce3842e666c07992ebdc454c1cf22256dc21a58.tar.gz
newspipe-4ce3842e666c07992ebdc454c1cf22256dc21a58.tar.bz2
newspipe-4ce3842e666c07992ebdc454c1cf22256dc21a58.zip
revert
Diffstat (limited to 'src')
-rw-r--r--src/conf.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/conf.py b/src/conf.py
index 756c1557..70fde9c4 100644
--- a/src/conf.py
+++ b/src/conf.py
@@ -80,10 +80,7 @@ PLATFORM_URL = config.get('misc', 'platform_url')
ADMIN_EMAIL = config.get('misc', 'admin_email')
SELF_REGISTRATION = config.getboolean('misc', 'self_registration')
SECURITY_PASSWORD_SALT = config.get('misc', 'security_password_salt')
-try:
- TOKEN_VALIDITY_PERIOD = config.getint('misc', 'token_validity_period')
-except:
- TOKEN_VALIDITY_PERIOD = int(config.get('misc', 'token_validity_period'))
+TOKEN_VALIDITY_PERIOD = config.getint('misc', 'token_validity_period')
if not ON_HEROKU:
LOG_PATH = os.path.abspath(config.get('misc', 'log_path'))
else:
@@ -102,10 +99,7 @@ DEFAULT_MAX_ERROR = config.getint('crawler', 'default_max_error')
ERROR_THRESHOLD = int(DEFAULT_MAX_ERROR / 2)
CRAWLER_TIMEOUT = config.get('crawler', 'timeout')
CRAWLER_RESOLV = config.getboolean('crawler', 'resolv')
-try:
- FEED_REFRESH_INTERVAL = config.getint('crawler', 'feed_refresh_interval')
-except:
- FEED_REFRESH_INTERVAL = int(config.get('crawler', 'feed_refresh_interval'))
+FEED_REFRESH_INTERVAL = config.getint('crawler', 'feed_refresh_interval')
NOTIFICATION_EMAIL = config.get('notification', 'notification_email')
NOTIFICATION_HOST = config.get('notification', 'host')
bgstack15