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

Dendrite __del__ method fix #2702

Merged
merged 4 commits into from
Feb 26, 2025
Merged

Conversation

thewhaleking
Copy link
Contributor

Adds a try:except catch for the __del__ method, as self.close_session() only works if not run from within an already-running event loop.

It's already explained throughout the module to use async context managers. The problem arises when the object is attempt to be garbage-collected, and thus the __del__ method is called.

…ion()` only works if not run from within an already-running event loop.
@thewhaleking thewhaleking requested a review from a team February 25, 2025 22:09
@thewhaleking thewhaleking merged commit 380c5a3 into staging Feb 26, 2025
32 checks passed
@thewhaleking thewhaleking deleted the fix/thewhaleking/dendrite-del-method branch February 26, 2025 15:27
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.

2 participants