zeno-ml / zeno-client

Python client for creating new Zeno projects and uploading data
https://zenoml.com/docs/intro/#creating-a-project
MIT License
8 stars 0 forks source link

fix: Handle API errors better #14

Closed neubig closed 1 year ago

neubig commented 1 year ago

Description

This PR makes two changes:

  1. It makes handling of API errors more robust by catching cases where the response is not JSON
  2. It stops using the general Exception class (which doesn't provide information about what type of error it is), and separates into Python ValueError and a new zeno-client APIError class.

References

Blocked by