diff --git a/omeroweb/connector.py b/omeroweb/connector.py index 4912822b5b..e0ab7647ff 100644 --- a/omeroweb/connector.py +++ b/omeroweb/connector.py @@ -281,6 +281,8 @@ def from_session(request): v = request.session.get("connector", None) if v is None: return None + if isinstance(v, Connector): + return v return Connector(**v) def to_session(self, request):