Skip to content

MaxConnectionsError not used consistently #3237

@PeterJCLaw

Description

@PeterJCLaw

Version: redis-py 5.0.4
Platform: Ubuntu 22.04

The docs around the max_connections argument in various places suggest that MaxConnectionsError should be used to indicate a lack of available connections, yet that exception type seems only to be used in one place:

raise MaxConnectionsError()

Other places use ConnectionError("Too many connections").

Is this expected? Should these all use MaxConnectionsError?

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