Skip to content

Commit

Permalink
Fix TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
nexy7574 committed Feb 8, 2024
1 parent 8527355 commit b96f61c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/niobot/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ async def get_dm_rooms(
if not hasattr(self, "list_direct_rooms"):
raise RuntimeError("You must have matrix-nio version 0.24.0 or later to use this feature.")
result = await self.list_direct_rooms()
if isinstance(result, nio.DirectRoomsErrorResponse()):
if isinstance(result, nio.DirectRoomsErrorResponse):
raise GenericMatrixError("Failed to get DM rooms", response=result)
if user:
user_id = self._get_id(user)
Expand Down

0 comments on commit b96f61c

Please sign in to comment.