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
The use of a bare Exception makes it difficult to catch this at a higher layer, because the higher layer would have to catch all Exceptions, not just this one.
Also there is no way for the higher layer to access the fields of the error object as they are not propagated.
What would you think of creating something like an EtradeRequestException() that passes back req_output?
Thanks!
The text was updated successfully, but these errors were encountered:
https://github.com/jessecooper/pyetrade/blob/adff0ee58aa273693d097ac7aea14756e6a55563/pyetrade/order.py#L50C15-L50C24
The use of a bare Exception makes it difficult to catch this at a higher layer, because the higher layer would have to catch all Exceptions, not just this one.
Also there is no way for the higher layer to access the fields of the error object as they are not propagated.
What would you think of creating something like an EtradeRequestException() that passes back req_output?
Thanks!
The text was updated successfully, but these errors were encountered: