Can you paste your code that raises the exception? I don't know that the 
message field will always be populated by default in a TException.

Is this an exception being thrown across an RPC call at the application level?

-----Original Message-----
From: Phillip B Oldham [mailto:[email protected]] 
Sent: Sunday, January 18, 2009 2:11 PM
To: [email protected]
Subject: Empty exceptions with python server/client.

I've created a test server and client in python, and with the "fail fast" 
philosophy I'm trying to get exception handling working before everything else. 
Things seem to work fine in terms of starting the server, connecting with the 
client and calling the remote procedures, but the exception messages are being 
seen by the client as a None object.

I'm raising exceptions as usual, and catching both the explicit type and with 
the following taken from the tutorial:

except Thrift.TException, tx:
  print 'Error: %s' % (tx.message)

Any ideas?

--
Phillip B Oldham
[email protected]
+44 (0) 7525 01 09 01

Reply via email to