Issue 969907: Don't print to stdout in cookielib.py exception handler (original) (raw)

There are a couple of blanket except: statements in cookielib. The idea is to handle any bugs in cookielib's input handling that may be tickled by unexpected input by issuing a warning instead of letting the exception propagate.

Previously, in addition to issuing a warning, a traceback was printed. This patch makes the traceback part of the warning, so it can be suppressed.