summaryrefslogtreecommitdiffstats
path: root/Doc/library/http.cookies.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/http.cookies.rst')
-rw-r--r--Doc/library/http.cookies.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/http.cookies.rst b/Doc/library/http.cookies.rst
index 533e963..9bffa40 100644
--- a/Doc/library/http.cookies.rst
+++ b/Doc/library/http.cookies.rst
@@ -17,6 +17,12 @@ The module formerly strictly applied the parsing rules described in the
MSIE 3.0x doesn't follow the character rules outlined in those specs. As a
result, the parsing rules used are a bit less strict.
+.. note::
+
+ On encountering an invalid cookie, :exc:`CookieError` is raised, so if your
+ cookie data comes from a browser you should always prepare for invalid data
+ and catch :exc:`CookieError` on parsing.
+
.. exception:: CookieError