You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, upon any error got from server(json data's error key), it is just raised like raise ValueError(json["data"])
There should be more error classes, maybe autogenerated. Or at least there should be a way to differentiate errors. (instead of doing like if "Error loading wallet" in str(e))
Also, as we have bitcart and bitcart-async, there might be a need in creating special ConnectionError because exceptions in async and sync version differ.
The text was updated successfully, but these errors were encountered:
Currently, upon any error got from server(json data's error key), it is just raised like
raise ValueError(json["data"])
There should be more error classes, maybe autogenerated. Or at least there should be a way to differentiate errors. (instead of doing like
if "Error loading wallet" in str(e)
)Also, as we have bitcart and bitcart-async, there might be a need in creating special
ConnectionError
because exceptions in async and sync version differ.The text was updated successfully, but these errors were encountered: