Skip to content

python SDKError __str__ bug #1479

@syvokobylka

Description

@syvokobylka

Attempt to represent python SDKError object as a string leads to another exception happening

.....
except looker_sdk.error.SDKError as ex:
    logger.error(f"Some important data and {str(ex)}")

Call stack:
2024-07-04 11:35:58.130
TypeError: sequence item 0: expected str instance, ErrorDetail found
2024-07-04 11:35:58.130
{sep.join(self.errors)}
2024-07-04 11:35:58.130
File "/root/.pyenv/versions/3.10.5/lib/python3.10/site-packages/looker_sdk/error.py", line 85, in str

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugRegression or bugp3Priority 3pythonPython SDK issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions