mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 04:59:18 +00:00
Throw error if hub_url is not present in site_config
This commit is contained in:
@@ -21,6 +21,8 @@ class HubSettings(Document):
|
|||||||
frappe.throw(_("Please select a Price List to publish pricing"))
|
frappe.throw(_("Please select a Price List to publish pricing"))
|
||||||
|
|
||||||
def get_hub_url(self):
|
def get_hub_url(self):
|
||||||
|
if not frappe.conf.hub_url:
|
||||||
|
frappe.throw('hub_url is not set in site_config')
|
||||||
return frappe.conf.hub_url
|
return frappe.conf.hub_url
|
||||||
|
|
||||||
def register(self):
|
def register(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user