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
When the function decorated by threaded_cached_property raises an exception, rather than the exception from the user code being front-and-center, users are presented first with the cached property KeyError, only to see their real error further down the line.
Take for example the following code and resulting traceback.
The traceback presents first, a KeyError which could be confusing to the user. Instead, it would be nice if cached-property would avoid this in such a way that only the relevant ZeroDivisionError would surface.
The text was updated successfully, but these errors were encountered:
When the function decorated by
threaded_cached_property
raises an exception, rather than the exception from the user code being front-and-center, users are presented first with the cached property KeyError, only to see their real error further down the line.Take for example the following code and resulting traceback.
The traceback presents first, a
KeyError
which could be confusing to the user. Instead, it would be nice if cached-property would avoid this in such a way that only the relevantZeroDivisionError
would surface.The text was updated successfully, but these errors were encountered: