Skip to content

Commit

Permalink
Merge pull request #203 from iQiexie/patch-1
Browse files Browse the repository at this point in the history
Fix error "AttributeError: module 'coredis' has no attribute 'RedisError'"
  • Loading branch information
alisaifee committed Mar 2, 2024
2 parents 7acdd22 + 94c097a commit 2f445cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion limits/aio/storage/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def __init__(
def base_exceptions(
self,
) -> Union[Type[Exception], Tuple[Type[Exception], ...]]: # pragma: no cover
return self.dependency.RedisError # type: ignore[no-any-return]
return self.dependency.exceptions.RedisError # type: ignore[no-any-return]

def initialize_storage(self, _uri: str) -> None:
# all these methods are coroutines, so must be called with await
Expand Down

0 comments on commit 2f445cb

Please sign in to comment.