If we pass the wrong arguments to a tunnel (in this case a Docker was constructed without passing a name), then a traceback is printed (however the program does not crash).
Exception ignored in: <object repr() failed>
Traceback (most recent call last):
File "/home/mauve/dev/chopsticks/chopsticks/tunnel.py", line 533, in __del__
self.close()
File "/home/mauve/dev/chopsticks/chopsticks/tunnel.py", line 511, in close
if not self.connected:
AttributeError: 'Docker' object has no attribute 'connected'
We can get around this by setting a class variable connected = False in the relevant base class.
If we pass the wrong arguments to a tunnel (in this case a Docker was constructed without passing a name), then a traceback is printed (however the program does not crash).
We can get around this by setting a class variable
connected = False
in the relevant base class.