From ec4261bd7761019bec2ba1f0a315689833bc05a3 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Sat, 2 Mar 2024 21:20:51 +0530 Subject: [PATCH] fix: Do not check for email validation on empty string --- frappe/utils/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frappe/utils/__init__.py b/frappe/utils/__init__.py index a0af84da7b..d89b5e62bf 100644 --- a/frappe/utils/__init__.py +++ b/frappe/utils/__init__.py @@ -195,6 +195,8 @@ def validate_email_address(email_str, throw=False): out = [] for e in email_str.split(","): + if not e: + continue email = _check(e.strip()) if email: out.append(email)