F
fowlertrainer
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.
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.