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
Fix#262: JSONErrorsMixin not returning correct results
After Notebook 5.2.0 is installed, JSONErrorsMixin.write_error is
used to convert errors into JSON responses. Previously, Notebook's
`@json_errors` decorator performed this action. Since the decorator's
replacement, `APIHandler.write_error`, doesn't adequately set the
`reason` field, other tests fail so its not sufficient to drop the
use of JSONErrorsMixin. As a result, JSONErrorsMixin now incorporates
the appropriate code from `APIHandler.write_error` (in particular the
setting of the `traceback` field) - in addition to appropriately
setting the `reason` field. This mixin should continue to be used
in the handler class hierachy until `APIHandler` is fixed.
I have tested these changes with Notebook 5.1.0 and 5.2.0 installed.
0 commit comments