You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could the system handle this scenario more gracefully? Perhaps context.session.retire() could check for a None case and simply return if it encounters it.
If this scenario is something the user is expected to address, an error log with a clear explanation of the issue and guidance on how to resolve it would be helpful."
From my point of view, use_session_pool=False is not the default configuration. And a user who uses it makes a conscious choice that the system will not use sessions.
So this check may be needed either when experimenting with the code or in some complex cases that the user defines himself.
Correct, if you disable the session pool, there is no session in the context. That is also the reason why it's typed to Session | None. This is working as expected, so closing.
Python code
command line output
The text was updated successfully, but these errors were encountered: