Skip to content

Commit

Permalink
Merge pull request #191 from Pavkazzz/fix/circuit-breaker-recursive-e…
Browse files Browse the repository at this point in the history
…xception

Fix circuit broker recursive exception
  • Loading branch information
mosquito authored Sep 28, 2023
2 parents d9dcce7 + 375d7f6 commit 1e87c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiomisc/circuit_breaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self, last_exception: Optional[Exception]):
self.last_exception = last_exception

def __repr__(self) -> str:
return f"<{self!r}: {self.last_exception!r}>"
return f"<CircuitBroken: {self.last_exception!r}>"


class CircuitBreaker(EventLoopMixin):
Expand Down

0 comments on commit 1e87c17

Please sign in to comment.