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
Python's error handling is usually done by raising exceptions and catching them in client code.
As such, let's follow this pattern in core. Whenever a function errors out, instead of returning normally with an error object, let's raise an exception and pass the responsibility of handling it up to the caller.
In practice, this means that while working with functions like
Python's error handling is usually done by raising exceptions and catching them in client code.
As such, let's follow this pattern in core. Whenever a function errors out, instead of returning normally with an error object, let's raise an exception and pass the responsibility of handling it up to the caller.
In practice, this means that while working with functions like
Instead of returning the error with whatever object is generated by
self.response_recognize()
(which is nicely presented), we'd raise an exception.check if we can give back error message that
httpx
givesThe text was updated successfully, but these errors were encountered: