Skip to content

Allow to throw OpenEoApiError with message as positional argument #894

@EmileSonneveld

Description

@EmileSonneveld

Detail, but in this code, it is assumed that any exception takes the message as the first positional argument:

            # Re-raise with enriched message while preserving original exception type and details
>           raise type(e)(f"{str(e)}{debug_info}") from e
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E           TypeError: OpenEoApiError.__init__() takes 1 positional argument but 2 were given

openeo-geopyspark-integrationtests/tests/test_integration.py:135: TypeError

This happened in this integration tests.

Metadata

Metadata

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