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}" )