From a08414014ff31b9aa3096d0128f966907e6d2c30 Mon Sep 17 00:00:00 2001 From: eightytwo <> Date: Sun, 30 Aug 2020 09:11:50 +1000 Subject: [PATCH] Only remove the build dir if it exists --- build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index 03bc77d..e480ac4 100644 --- a/build.py +++ b/build.py @@ -210,7 +210,8 @@ if __name__ == "__main__": ) # Clean the build directory - rmtree(BUILD_PATH) + if Path(BUILD_PATH).exists(): + rmtree(BUILD_PATH) # Ensure some build directories exist Path(f'{BUILD_PATH}/blog/tag/').mkdir(parents=True, exist_ok=True) -- 2.38.5