diff --git a/Lib/http/cookiejar.py b/Lib/http/cookiejar.py index 65c45e2b17dfc0..e0b914c53f0614 100644 --- a/Lib/http/cookiejar.py +++ b/Lib/http/cookiejar.py @@ -2076,6 +2076,8 @@ def _really_load(self, f, filename, ignore_discard, ignore_expires): except OSError: raise + except ValueError: + raise except Exception: _warn_unhandled_exception() raise LoadError("invalid Netscape format cookies file %r: %r" % diff --git a/Misc/NEWS.d/next/Library/2022-11-22-09-02-18.gh-issue-99453.jPhGOz.rst b/Misc/NEWS.d/next/Library/2022-11-22-09-02-18.gh-issue-99453.jPhGOz.rst new file mode 100644 index 00000000000000..9c558e357c4167 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-11-22-09-02-18.gh-issue-99453.jPhGOz.rst @@ -0,0 +1 @@ +.