> 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
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