From 27828ec3c746fdad143d7bc31bcb7195bb09581e Mon Sep 17 00:00:00 2001 From: HgO Date: Mon, 22 Jan 2024 11:50:09 +0100 Subject: [PATCH] fix linting --- matrix_alertbot/matrix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix_alertbot/matrix.py b/matrix_alertbot/matrix.py index a13369d..0d3daa0 100644 --- a/matrix_alertbot/matrix.py +++ b/matrix_alertbot/matrix.py @@ -190,7 +190,7 @@ class MatrixClientPool: ) # Check if login failed - if type(login_response) == LoginError: + if isinstance(login_response, LoginError): logger.error( f"Bot {account.id} | Failed to login: {login_response.message}" )