From 396835a60bbade4781fa1e732b6c1cea8cc16e4e Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jun 05 2018 13:22:43 +0000 Subject: Be more flexible with non-mandatory config keys Since these configuration keys are not all mandatory, do not behave as if they were. Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/lib/tasks.py b/pagure/lib/tasks.py index 6ba3fad..fed12b9 100644 --- a/pagure/lib/tasks.py +++ b/pagure/lib/tasks.py @@ -201,7 +201,7 @@ def delete_project( for key in [ 'GIT_FOLDER', 'DOCS_FOLDER', 'TICKETS_FOLDER', 'REQUESTS_FOLDER']: - if pagure_config[key]: + if pagure_config.get(key): path = os.path.join(pagure_config[key], project.path) if os.path.exists(path): paths.append(path)