diff options
Diffstat (limited to 'src/conf.py')
-rw-r--r-- | src/conf.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/conf.py b/src/conf.py index 96040a87..9d4c363c 100644 --- a/src/conf.py +++ b/src/conf.py @@ -83,7 +83,10 @@ except: ADMIN_EMAIL = config.get('misc', 'admin_email') SELF_REGISTRATION = config.getboolean('misc', 'self_registration') SECURITY_PASSWORD_SALT = config.get('misc', 'security_password_salt') -TOKEN_VALIDITY_PERIOD = config.getint('misc', 'token_validity_period') +try: + TOKEN_VALIDITY_PERIOD = config.getint('misc', 'token_validity_period') +except: + TOKEN_VALIDITY_PERIOD = int(config.get('misc', 'token_validity_period')) if not ON_HEROKU: LOG_PATH = os.path.abspath(config.get('misc', 'log_path')) else: @@ -102,7 +105,10 @@ 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') -FEED_REFRESH_INTERVAL = config.getint('crawler', 'feed_refresh_interval') +try: + FEED_REFRESH_INTERVAL = config.getint('crawler', 'feed_refresh_interval') +except: + FEED_REFRESH_INTERVAL = int(config.get('crawler', 'feed_refresh_interval')) NOTIFICATION_EMAIL = config.get('notification', 'notification_email') NOTIFICATION_HOST = config.get('notification', 'host') |