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
{{ message }}
Repository navigation
RecursionError raised when attempting to destroy a session #8
Expected behavior:
session.destroy() should destroy the active session.
Actual behavior:
session.destroy() raises a RecursionError.
There appears to be a collision with the the instance method destroy and the module-level function destroy in session.py, which is causing a recursive call. I assume the module-level function is intended to be called at the end of the function below.
def destroy(self, params=None, options=None):
if not isinstance(params, dict):
params = {}
if not isinstance(options, dict):
options = {}
options.pop("session_id", None)
options["session"] = self
Session.destroy(params, options)
Activity