From 627086937418ab4a569b943add017f1951fac0c5 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 6 Feb 2013 15:42:41 +0530 Subject: [PATCH] fix in remove account utils folder patch --- patches/february_2013/remove_account_utils_folder.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/patches/february_2013/remove_account_utils_folder.py b/patches/february_2013/remove_account_utils_folder.py index 718826baa0..5d0313bbfb 100644 --- a/patches/february_2013/remove_account_utils_folder.py +++ b/patches/february_2013/remove_account_utils_folder.py @@ -3,4 +3,6 @@ def execute(): import shutil import os - shutil.rmtree(os.path.join(get_base_path(), "app", "accounts", "utils")) \ No newline at end of file + utils_path = os.path.join(get_base_path(), "app", "accounts", "utils") + if os.path.exists(utils_path): + shutil.rmtree(utils_path) \ No newline at end of file