Skip to content

Commit

Permalink
Added a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
csande committed Feb 3, 2025
1 parent 4d067a2 commit eb0475f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions canvas_sdk/handlers/simple_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
method, relative_path = attr.route
route = (method, f"{prefix}{relative_path}")

if route in self._routes:
raise RuntimeError("")

# We have to make sure that routes are only handled by one handler, but we can't do
# that here given that other plugins may also implement routes. So the check for
# duplicate routes has to happen elsewhere, external to the plugins that inherit
# from this class.
self._routes[route] = attr

def compute(self) -> list[Effect]:
Expand Down

0 comments on commit eb0475f

Please sign in to comment.