From 767c7dc2cccb6613f6aa7dca4e65cfea2b77f2f6 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Fri, 21 Jun 2024 12:25:49 -0400 Subject: [PATCH] Support an ALLOW_EMPTY_LOCAL env. var. in the CLI --- email_validator/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/email_validator/__main__.py b/email_validator/__main__.py index 46ab445..f5a912a 100644 --- a/email_validator/__main__.py +++ b/email_validator/__main__.py @@ -29,7 +29,7 @@ def main(dns_resolver: Optional[_Resolver] = None) -> None: # Set options from environment variables. options: Dict[str, Any] = {} - for varname in ('ALLOW_SMTPUTF8', 'ALLOW_QUOTED_LOCAL', 'ALLOW_DOMAIN_LITERAL', + for varname in ('ALLOW_SMTPUTF8', 'ALLOW_EMPTY_LOCAL', 'ALLOW_QUOTED_LOCAL', 'ALLOW_DOMAIN_LITERAL', 'ALLOW_DISPLAY_NAME', 'GLOBALLY_DELIVERABLE', 'CHECK_DELIVERABILITY', 'TEST_ENVIRONMENT'): if varname in os.environ: