From 1cc287fb502a6b3c7aec821bd67a6fc8ebb7beaa Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Thu, 21 Aug 2014 14:01:18 +0100 Subject: [PATCH] Fixed archiver error if temp_dir doesn't exist. --- src/archive.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/archive.py b/src/archive.py index ba93d86e..ca4c7a5f 100644 --- a/src/archive.py +++ b/src/archive.py @@ -39,7 +39,8 @@ if (len(sys.argv) > 1): archive_name = sys.argv[1] # Delete the temporary folder if it already exists. -shutil.rmtree(temp_path) +if os.path.exists(temp_path): + shutil.rmtree(temp_path) # First make sure that the temporary folder for the archive exists. if not os.path.exists(temp_path):