diff --git a/jupyter_collaboration/handlers.py b/jupyter_collaboration/handlers.py index a60dc0fc..52336d09 100644 --- a/jupyter_collaboration/handlers.py +++ b/jupyter_collaboration/handlers.py @@ -206,7 +206,7 @@ async def open(self, path): # Close the connection if the document session expired session = self.get_query_argument("session", "") - if isinstance(self.room, DocumentRoom) and not DOCUMENT_SESSION == session: + if isinstance(self.room, DocumentRoom) and DOCUMENT_SESSION != session: self.close(1, "Document session expired") # cancel the deletion of the room if it was scheduled