sys.traceback + thread
fowlertrainer at anonym.hu
fowlertrainer at anonym.hu
Tue Dec 9 08:21:34 EST 2003
Hello python-list,
This is a thread's run method.
def run(self):
try:
page=urllib.urlopen(base)
src=page.read()
page=None
self.ResultCode=0
self.ResultSrc=src
except:
self.ResultSrc="An error occured"+
the exception's errormessage !!!
self.ResultCode=1
I use the traceback module in one threaded application.
But I don't use it in multiple threaded app.
What can I use/how can I do in except section to get the exception's
message ?
Please help me.
Thx.
--
Best regards,
fowlertrainer mailto:fowlertrainer at anonym.hu
More information about the Python-list
mailing list