From: Iwan V. <iv...@la...> - 2006-09-12 10:19:38
|
Hi there, I believe I may have found a bug. I'm still on an older version of the spyce 2.1 tree (revision 1153), so it may also have been fixed already. I'd love to know whether this is the case or not... I would expect to be passed the raised exception instance in catch(), but it seems that the exception class is passed instead in the code below. -i ---------------------------- reproduce.py --------------------- import spyceTag class TestException(Exception): pass class Catch(spyceTag.spyceTagPlus): name = 'catch' catches = True def begin(self): raise TestException('stuff') def catch(self, ex): print type(ex) # Here's where I get <type 'classobj'>, instead # of the expected <type 'instance'> class reproduce(spyceTag.spyceTagLibrary): tags = [ Catch ] |