From 09935604c4ae02730f27d58fad832ac4ad225ffe Mon Sep 17 00:00:00 2001 From: shreyas Date: Thu, 21 Jul 2016 18:04:31 +0530 Subject: [PATCH] [Fix] Raise exception instead of particular error --- frappe/installer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frappe/installer.py b/frappe/installer.py index fa21900c5a..68bffabfb4 100755 --- a/frappe/installer.py +++ b/frappe/installer.py @@ -347,8 +347,8 @@ def check_if_ready_for_barracuda(): def extract_sql_gzip(sql_gz_path): try: success = subprocess.check_output(['gzip', '-d', '-v', '-f', sql_gz_path]) - except subprocess.CalledProcessError: - raise subprocess.CalledProcessError + except: + raise path = sql_gz_path[:-3] if success else None @@ -368,8 +368,8 @@ def extract_tar_files(site_name, file_path, folder_name): try: subprocess.check_output(['tar', 'xvf', tar_path, '--strip', '2'], cwd=abs_site_path) - except subprocess.CalledProcessError: - raise subprocess.CalledProcessError + except: + raise finally: frappe.destroy()