Re: [Tutor] AssertionError issue

2006-07-24 Thread Alan Gauld
> In a function of the class, I have put the code in try/except block. > > try: > -- > -- > except AssertionError: > print "Error Condition" > > In this code, when error occurs, it raises the AssertionError > but the destuctor isnt called itself. The destructor will onl

[Tutor] AssertionError issue

2006-07-24 Thread Akanksha Govil
Hi,I have a class in python which creates an ssh connection to a remote machine.In a function of the class, I have put the code in try/except block.try: -- --except AssertionError: print "Error Condition"In this code, when error occurs, it raises the AssertionError but t