Skip to content

Conversation

@2000game
Copy link

@2000game 2000game commented Jul 1, 2023

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'

…o close self.session, wich does not exit at that time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant