mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 05:09:11 +00:00
[minor] fixes for import conf
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
def on_login(self):
|
||||
from webnotes.utils import validate_email_add
|
||||
from webnotes import conf
|
||||
if hasattr(conf, "demo_notify_url"):
|
||||
if "demo_notify_url" in conf:
|
||||
if webnotes.form_dict.lead_email and validate_email_add(webnotes.form_dict.lead_email):
|
||||
import requests
|
||||
response = requests.post(conf.demo_notify_url, data={
|
||||
|
||||
Reference in New Issue
Block a user