how to print tracback information to a file
Oleg Broytmann
phd at phd.fep.ru
Mon Apr 30 15:36:06 EDT 2001
On Mon, 30 Apr 2001 ed_tsang at yahoo.com wrote:
> trcfile = "error.txt"
> try:
> traceback.print_exception(exc[0],exc[1],exc[2],file = trcfile)
The "file" parameter must be a file open for writing:
...file=open(trcfile, 'w')...
Oleg.
----
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list