Skip to content

exception prints literal {exception.args} because it's not an f-string #3840

@matthewwiese

Description

@matthewwiese

Recently I encountered the following error while debugging some code:

redis.exceptions.ResponseError: Command # 1 (FT.SEARCH geneIdx...) of pipeline caused error: {exception.args}

I went down a bit of a rabbit hole before realizing the solution, and I think if exception.args were actually printed I might have discovered it sooner. Regardless, this is a minor bug that ought to be fixed.

Code in question: https://github.com/redis/redis-py/blob/master/redis/asyncio/client.py#L1587

I will open a PR in a sec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions