unioslo / harborapi

Python async client for the Harbor REST API v2.0.
https://unioslo.github.io/harborapi/
MIT License
28 stars 5 forks source link

Handle invalid JSON, raise more informative exception msg #97

Closed pederhan closed 5 hours ago

pederhan commented 5 hours ago

Only accept string response if calling _get() with text=True. Avoids validation errors from trying to parse a response that cannot be validated as JSON.