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

AttributeError: 'Satellite' object has no attribute '_session' #334

Open
lhellebr opened this issue Nov 5, 2024 · 0 comments
Open

AttributeError: 'Satellite' object has no attribute '_session' #334

lhellebr opened this issue Nov 5, 2024 · 0 comments

Comments

@lhellebr
Copy link

lhellebr commented Nov 5, 2024

When running pytest --collect-only, I'm getting this on stderr without any immediately noticeable problem caused by that:

Exception ignored in: <function Host.__del__ at 0x7f01bee44400>
Traceback (most recent call last):
  File "/home/lhellebr/git/robottelo/venv/lib64/python3.12/site-packages/broker/hosts.py", line 77, in __del__
    self.close()
  File "/home/lhellebr/git/robottelo/venv/lib64/python3.12/site-packages/broker/hosts.py", line 147, in close
    if self._session is not None:
       ^^^^^^^^^^^^^
AttributeError: 'Satellite' object has no attribute '_session'

When investigating, I get to

        if self._session is not None:
            self._session.disconnect()
        self._session = None

So it seems like _session is neither a session object nor None. At this point I'm stopping investigation as out of scope of what I'm doing.

$ broker --version | grep 'Broker 0'
                           Broker 0.6.2 
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

No branches or pull requests

1 participant