simserver.SessionServer.check_session

SessionServer.check_session(*args, **kwargs)[source]

Make sure a session is open.

If it’s not and autosession is turned on, create a new session automatically. If it’s not and autosession is off, raise an exception.