Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

Commit

Permalink
fix: allow to re register api
Browse files Browse the repository at this point in the history
  • Loading branch information
1hachem committed Mar 14, 2024
1 parent 99f5d45 commit e92e5a8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hyko_toolkit/apis/api_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ class APIRegistry:

@classmethod
def register(cls, name: str, api: _ToolkitAPI):
if name in cls._registry:
raise KeyError(f"API handler '{name}' is already registered")
cls._registry[name] = api

@classmethod
Expand Down

0 comments on commit e92e5a8

Please sign in to comment.