From 9602bf4ba3566479fb10e590dad0e4f082122eb8 Mon Sep 17 00:00:00 2001 From: Shreya Date: Mon, 19 Mar 2018 18:17:54 +0530 Subject: [PATCH] patch fix --- erpnext/patches/v10_0/update_hub_connector_domain.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/erpnext/patches/v10_0/update_hub_connector_domain.py b/erpnext/patches/v10_0/update_hub_connector_domain.py index fc3c29403f4..808ae77129f 100644 --- a/erpnext/patches/v10_0/update_hub_connector_domain.py +++ b/erpnext/patches/v10_0/update_hub_connector_domain.py @@ -1,8 +1,9 @@ import frappe def execute(): - frappe.db.sql(""" - UPDATE `tabData Migration Connector` - SET hostname = 'https://hubmarket.org' - WHERE connector_name = 'Hub Connector' - """) \ No newline at end of file + if frappe.db.table_exists("Data Migration Connector"): + frappe.db.sql(""" + UPDATE `tabData Migration Connector` + SET hostname = 'https://hubmarket.org' + WHERE connector_name = 'Hub Connector' + """) \ No newline at end of file