MCPcopy
hub / github.com/redis/redis-py / raise_first_error

Method raise_first_error

redis/asyncio/client.py:1966–1970  ·  view source on GitHub ↗
(self, commands: CommandStackT, response: Iterable[Any])

Source from the content-addressed store, hash-verified

1964 return response
1965
1966 def raise_first_error(self, commands: CommandStackT, response: Iterable[Any]):
1967 for i, r in enumerate(response):
1968 if isinstance(r, ResponseError):
1969 self.annotate_exception(r, i + 1, commands[i][0])
1970 raise r
1971
1972 def annotate_exception(
1973 self, exception: Exception, number: int, command: Iterable[object]

Callers 2

_execute_transactionMethod · 0.95
_execute_pipelineMethod · 0.95

Calls 1

annotate_exceptionMethod · 0.95

Tested by

no test coverage detected