Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion coredis/client/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@
from coredis.credentials import AbstractCredentialProvider
from coredis.exceptions import (
AuthenticationError,
AuthorizationError,
ConnectionError,
PersistenceError,
RedisError,
ReplicationError,
ResponseError,
TimeoutError,
UnknownCommandError,
WatchError,
Expand Down Expand Up @@ -339,7 +341,13 @@ async def _populate_module_versions(self) -> None:
ver, minor = divmod(ver, 100)
ver, major = divmod(ver, 100)
self._module_info[name] = version.Version(f"{major}.{minor}.{patch}")
except (UnknownCommandError, AuthenticationError):
except (UnknownCommandError, AuthenticationError, AuthorizationError):
self._module_info = {}
except ResponseError as err:
warnings.warn(
"Unable to determine module support due to response error from "
f"`MODULE LIST`: {err}."
)
Comment thread
alisaifee marked this conversation as resolved.
self._module_info = {}

async def initialize(self: ClientT) -> ClientT:
Expand Down
Loading