mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-20 18:06:30 +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"))
|
||||
|
||||
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
|
||||
|
||||
def register(self):
|
||||
|
||||
Reference in New Issue
Block a user