Merge pull request #16680 from gavindsouza/migrate-fix
fix: Check for required services running after frappe init
This commit is contained in:
commit
0a1b75c452
1 changed files with 3 additions and 3 deletions
|
|
@ -159,13 +159,13 @@ class SiteMigration:
|
|||
"""Run Migrate operation on site specified. This method initializes
|
||||
and destroys connections to the site database.
|
||||
"""
|
||||
if not self.required_services_running():
|
||||
raise SystemExit(1)
|
||||
|
||||
if site:
|
||||
frappe.init(site=site)
|
||||
frappe.connect()
|
||||
|
||||
if not self.required_services_running():
|
||||
raise SystemExit(1)
|
||||
|
||||
self.setUp()
|
||||
try:
|
||||
self.pre_schema_updates()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue