| |
@@ -33,6 +33,10 @@
|
| |
# from config and we add them here.
|
| |
if config["ENABLE_DOCS"]:
|
| |
config["DOCS_FOLDER"] = os.path.join(config["GIT_FOLDER"], "docs")
|
| |
+ else:
|
| |
+ config[
|
| |
+ "DOCS_FOLDER"
|
| |
+ ] = None # Avoid 'KeyError' Exception down the line
|
| |
if config["ENABLE_TICKETS"]:
|
| |
config["TICKETS_FOLDER"] = os.path.join(
|
| |
config["GIT_FOLDER"], "tickets"
|
| |
Ensure
config["DOCS_FOLDER"]
is always defined to avoidKeyError
Exception down the lineFixes: https://pagure.io/pagure/issue/5407