> I cannot grasp how the second statement in the try block can possibly
> be executed, given that the first statement raises an exception.

You said earlier that the exception raised in the first statement was
not making it out of run_with_transaction(). If the exception was
"handled" by raising an error or simply doing nothing, then returning
code execution it would reach the hub.commit(). That manages to raise
the exception for your code to handle it.

I think part of the problem was that your initial code sample was not
catching the exception properly. If you run the code with a global
except and reraise the exception[1] it should give you the exact name
you are looking for.

[1] code sample:
try:
  foo()
except:
  raise

-Adam


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to