Skip to content

Commit

Permalink
fix linter complaint E721 (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
HarHarLinks authored Oct 7, 2023
1 parent 8688059 commit 19685a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion matrix_reminder_bot/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ async def invite(self, room: MatrixRoom, event: InviteMemberEvent):
# Attempt to join 3 times before giving up
for attempt in range(3):
result = await self.client.join(room.room_id)
if type(result) == JoinError:
if type(result) is JoinError:
logger.error(
f"Error joining room {room.room_id} (attempt %d): %s",
attempt,
Expand Down
2 changes: 1 addition & 1 deletion matrix_reminder_bot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async def main():
)

# Check if login failed. Usually incorrect password
if type(login_response) == LoginError:
if type(login_response) is LoginError:
logger.error("Failed to login: %s", login_response.message)
logger.warning("Trying again in 15s...")

Expand Down

0 comments on commit 19685a6

Please sign in to comment.