Skip to content

Commit

Permalink
This should be set_exception
Browse files Browse the repository at this point in the history
  • Loading branch information
EvieePy committed Aug 27, 2024
1 parent 4eb4d06 commit 8c834dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twitchio/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ async def __call__(self, *args: Any) -> Any:
result = await self._predicate(*args)
except Exception as e:
self._set.discard(self)
self.__future.set_result(e)
self.__future.set_exception(e)
return

if not result:
Expand Down

0 comments on commit 8c834dc

Please sign in to comment.