Throw error if hub_url is not present in site_config
This commit is contained in:
parent
3cd0c54438
commit
f9e4cca334
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user