From c6e1f685af286972ded46eff52dc7d8b563eb0c0 Mon Sep 17 00:00:00 2001
From: Hannes Feldt <feldt@astron.nl>
Date: Thu, 30 Nov 2023 12:28:14 +0100
Subject: [PATCH] fix

---
 {{cookiecutter.project_slug}}/docs/cleanup.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/{{cookiecutter.project_slug}}/docs/cleanup.py b/{{cookiecutter.project_slug}}/docs/cleanup.py
index f5890d9..c83aa64 100644
--- a/{{cookiecutter.project_slug}}/docs/cleanup.py
+++ b/{{cookiecutter.project_slug}}/docs/cleanup.py
@@ -10,6 +10,9 @@ file_dir = os.path.dirname(os.path.realpath(__file__))
 clean_dir = os.path.join(file_dir, "source", "source_documentation")
 print(f"Cleaning.. {clean_dir}/*")
 
+if not os.path.exists(clean_dir):
+    exit()
+
 for file_name in os.listdir(clean_dir):
     file = os.path.join(clean_dir, file_name)
     match file_name:
-- 
GitLab