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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
changed all absolute koi_net imports to relative imports
better handling errors in request handler, comprehensive coverage and grouping for easier exception handling
fixed mislabeled exceptions in server
added better exception documentation
factored out ErrorResponse from internal systems
when peer node responds with an error, the response payload is instead validated and the corresponding exception is raised, simplifying internal code and allow exception handling by group (i.e. any request error)
refactored sync manager and resolver to use try.. except.. rather than checking if the response type is an error response
added a safe_flush method to the event buffer, now used by the event worker to automatically roll back changes when exceptions occur, improved error handling
added force_flush on event worker shut down so thread doesn't hang on unreachable nodes
added report exception wrapper to automatically log warnings for all request error exceptions when make_request is called
handled all request error exceptions in functions calling make_request, and everything upstream of them