Skip to content

v1.2.4

Choose a tag to compare

@lukvmil lukvmil released this 12 Dec 18:31
· 118 commits to main since this release
1ca654b
  • 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
  • fixed improper exception import, added log warning for event buffer reset