fix: handle exceptions thrown in post_schema_updates (#18648)

* fix: handle exceptions thrown in post_schema_updates

* chore: removed nested try-finally block
This commit is contained in:
Shadrak Gurupnor 2022-10-28 22:37:58 +05:30 committed by GitHub
parent aa8957e785
commit 9c0e111383
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()