Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
This results in the following stack trace:
def register_auth_module(auth_module): """ Add an auth module into the registry used by make_session_key. An auth module is discovered via its auth mechanism. args: auth_module: A 0-arg callable that should return a SessionKey or raises a SessionKeyError and extend AuthModule. """ if not isinstance(auth_module, AuthModule): raise TypeError('Given auth module must be a AuthModule subclass, got %s' % type(auth_module)) if not callable(auth_module): > raise TypeError('auth_module should be callable.') E TypeError: auth_module should be callable.