Skip to content

Commit

Permalink
implementation error details
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Sep 23, 2023
1 parent e8bf696 commit dadec61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sharded_queue/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async def create(cls) -> Self:
def request_cls(cls) -> type[T]:
request_cls = list(get_type_hints(cls.handle).values())[0]
if isinstance(request_cls, TypeVar):
raise NotImplementedError
raise NotImplementedError(cls)
return request_cls

@classmethod
Expand All @@ -45,7 +45,7 @@ async def start(self) -> None:
pass

async def handle(self, *requests: T) -> None:
raise NotImplementedError
raise NotImplementedError(self.__class__)

async def stop(self) -> None:
pass
Expand Down

0 comments on commit dadec61

Please sign in to comment.