From 9c0e111383f163125c624694bfbf3f5950bc90d4 Mon Sep 17 00:00:00 2001 From: Shadrak Gurupnor <30501401+shadrak98@users.noreply.github.com> Date: Fri, 28 Oct 2022 22:37:58 +0530 Subject: [PATCH] fix: handle exceptions thrown in post_schema_updates (#18648) * fix: handle exceptions thrown in post_schema_updates * chore: removed nested try-finally block --- frappe/migrate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/migrate.py b/frappe/migrate.py index 6fa1fb43e9..692b5c2ca3 100644 --- a/frappe/migrate.py +++ b/frappe/migrate.py @@ -173,7 +173,7 @@ class SiteMigration: try: self.pre_schema_updates() self.run_schema_updates() - finally: self.post_schema_updates() + finally: self.tearDown() frappe.destroy()