Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fixed teardown of PCO class where authentication failed #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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