Skip to content

[BUG CLIENT]: Unhashable exception SDKError #272

@jpennors

Description

@jpennors

Python -VV

3.11

Pip Freeze

mistralai==1.9.10

Reproduction Steps

Just do :

error = SDKError("", 0, "")
print({error})

Expected Behavior

Hashable SDKError object that can be mapped as dictionary.

Additional Context

I recently created a PR. However the code is auto generated so there is no way to fix it this way.

I encounter the issue as I was sending exception from Mistral to Rollbar as explained in the PR.

Suggested Solutions

Adding frozen=True like in the PR and it will work well.

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