ynput / ayon-python-api

Apache License 2.0
8 stars 3 forks source link

Dispatch event raises when fails #124

Closed iLLiCiTiT closed 7 months ago

iLLiCiTiT commented 7 months ago

Description

Use raise_for_status for validation of event dispatch method. Output of the method is not boolean anymore.

Implemented proper __bool__ method for RestApiResponse and ouput of __len__ is int.

Additional information

This change may be backwards incompatible change as the previous behavior returned boolean and just logged out the information -> We should probably go through the known usages and revalidate the change.