From 3d4bfa74131eba25699896cb1a3dca48493f237a Mon Sep 17 00:00:00 2001 From: vslg Date: Mon, 29 Jun 2020 09:07:40 -0300 Subject: [PATCH] Do not use .keys() --- src/backend/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/backend.py b/src/backend/backend.py index 646fd2e7..349442bb 100644 --- a/src/backend/backend.py +++ b/src/backend/backend.py @@ -136,7 +136,7 @@ class Backend: raise # Check if the user is already present on mirage - if client.user_id in self.clients.keys(): + if client.user_id in self.clients: await client.logout() return client.user_id