Skip to content

Commit

Permalink
Update _full_cache null test
Browse files Browse the repository at this point in the history
  • Loading branch information
salty-horse committed Jul 19, 2024
1 parent 0273192 commit 1fa4bb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validators/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def _retrieve(cls):
def check(cls, tld: str):
if tld in cls._popular_cache:
return True
if not cls._full_cache:
if cls._full_cache is None:
if environ.get("PYVLD_CACHE_TLD", "False") == "True":
cls._full_cache = set(cls._retrieve())
else:
Expand Down

0 comments on commit 1fa4bb5

Please sign in to comment.