When tearing down an PCO class, that was initialized without parameters, first an PCOCredentialsexception error occurs. When that is catched, an AttributeError occurs, because during teardown it tries to close the session which won't hasn't been defined yet.
.....Exception ignored in: <function PCO.__del__ at 0x7fdb3dc83ee0>
Traceback (most recent call last):
File "/home/fk/pypco/pypco/pco.py", line 539, in __del__
if self.session is not None:
AttributeError: 'PCO' object has no attribute 'session'
When tearing down an PCO class, that was initialized without parameters, first an PCOCredentialsexception error occurs. When that is catched, an AttributeError occurs, because during teardown it tries to close the session which won't hasn't been defined yet.