ynput / ayon-python-api

Apache License 2.0
9 stars 4 forks source link

Response: Fix data access #50

Closed iLLiCiTiT closed 1 year ago

iLLiCiTiT commented 1 year ago

Description

Made fail safe access to data attribute on custom response object. Data are set to empty dictionary if fails with json decode error, that reduces checks for status codes which may contain data in some cases and should not contain then in others.