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 error handling does not allow to manage exceptions when using PyDruid. For example, it's hard to catch an HTTP Error 504: Gateway Time-out and then initiate a retry. A connection refused would, on the other hand, be an exception to log with Sentry, etc. All the fine-grained HTTP client exceptions get the generic label OSError with a string describing it, which is a bad design decision.
The error handling does not allow to manage exceptions when using PyDruid. For example, it's hard to catch an HTTP Error 504: Gateway Time-out and then initiate a retry. A connection refused would, on the other hand, be an exception to log with Sentry, etc. All the fine-grained HTTP client exceptions get the generic label OSError with a string describing it, which is a bad design decision.
pydruid/pydruid/client.py
Lines 554 to 577 in 98cab4d
The text was updated successfully, but these errors were encountered: