Throw error if hub_url is not present in site_config

This commit is contained in:
Suraj Shetty 2018-08-21 16:30:33 +05:30
parent 3cd0c54438
commit f9e4cca334

View File

@ -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):