Skip to content

Commit

Permalink
Update aiohttp/cookiejar.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Bull <aa6bs0@sambull.org>
  • Loading branch information
bratao and Dreamsorcerer authored Feb 28, 2022
1 parent 8a8de31 commit 58ed64f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aiohttp/cookiejar.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ def clear(self, predicate: Optional[ClearCookiePredicate] = None) -> None:
to_del.append(key)

for domain, path, name in to_del:
key = (domain, name)
self._host_only_cookies.discard(key)
self._host_only_cookies.discard((domain, name))
key = (domain, path, name)
if key in self._expirations:
del self._expirations[(domain, path, name)]
Expand Down

0 comments on commit 58ed64f

Please sign in to comment.