X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=fba%2Fhelpers%2Fcookies.py;h=b23e644a38802ad51b4281dce8a4ea89db4b84e0;hb=a08c1e20e34164f61e749739930fb9ae3d45e6db;hp=15f4fc77f1ea08295d773fc0ccc52ac8c37a7a1f;hpb=1bca9e20775542a690f24cf7a6127865cfe7b8e5;p=fba.git diff --git a/fba/helpers/cookies.py b/fba/helpers/cookies.py index 15f4fc7..b23e644 100644 --- a/fba/helpers/cookies.py +++ b/fba/helpers/cookies.py @@ -44,8 +44,7 @@ def get_all(domain: str) -> dict: if blacklist.is_blacklisted(domain): raise ValueError(f"domain='{domain}' is blacklisted but function was invoked") - - if domain not in _cookies: + elif domain not in _cookies: return dict() logger.debug("_cookies[%s]()=%d - EXIT!", domain, len(_cookies[domain]))