Exception value cut off

Fredrik Lundh fredrik at pythonware.com
Thu May 12 16:59:51 EDT 2005


"Ryan, Adam" wrote:

> sys.exc_info()[1] returns the first 308 characters of an error message from
> a module.  Is there a way to increase the length so it doesn't get cut off?

sys.exc_info()[1] returns the entire contents of the exception parameter.
if it's cut off, it's either cut off by the code raising the exception (C code
sometimes uses a fixed-size buffer to format the exception string), or by
the tool you're using to display the exception.

</F>






More information about the Python-list mailing list