Provide default for max_dashboard_logs config key

pull/233/head
erno-ficora 2018-08-07 14:00:37 +03:00 committed by GitHub
parent 54cc4f3723
commit b913023a4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -144,4 +144,7 @@ bootstrap_label = ['primary', 'success', 'danger', 'warning', 'info']
UPLOAD_FOLDER = os.path.join(os.environ['AIL_FLASK'], 'submitted')
max_dashboard_logs = int(cfg.get("Flask", "max_dashboard_logs"))
try:
max_dashboard_logs = int(cfg.get("Flask", "max_dashboard_logs"))
except configparser.NoOptionError:
max_dashboard_logs = 2