Fixes GITLABCOM-PYW8
What does this MR do and why?
Fixes https://sentry.gitlab.net/gitlab/gitlabcom/issues/3358139/ and related errors, that happens when Oj returns nil when parsing a notebook.
How to set up and validate locally
This is a corner case that is hard to reproduce manually, but the new test replicates the error.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Tetiana Chupryna