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

Clarify documentation related to ressource cleanup #10

Open
netixx opened this issue Oct 1, 2020 · 0 comments
Open

Clarify documentation related to ressource cleanup #10

netixx opened this issue Oct 1, 2020 · 0 comments

Comments

@netixx
Copy link

netixx commented Oct 1, 2020

Using aionetbox as suggested in the readme, I am having trouble at the end of my program.

If I use the await netbox_client.close() method on the client, I get an Exception ignored in: <function AIONetbox.__del__ at 0x7fa41f96b7a0> and sys:1: RuntimeWarning: coroutine 'ClientSession.close' was never awaited
If I don't use it, I get a ERROR:asyncio:Unclosed connector.

What is the proper way to clean the AIONetbox object ressources ?

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