Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Nothing is not JSON serializable again #4894

Merged
merged 1 commit into from
Mar 29, 2021
Merged

Fix Nothing is not JSON serializable again #4894

merged 1 commit into from
Mar 29, 2021

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Mar 26, 2021

Closes #4555

A second attempt after the solution proposed in #4557 proved to be too far-reaching and had to be reverted in #4591.

Convert a Nothing into an empty list before performing a json.dumps() on it to avoid TypeError: Object of type Nothing is not JSON serializable as described in #4555.

Technical

Testing

Screenshot

Stakeholders

@cclauss cclauss added Module: Python python Pull requests that update Python code labels Mar 26, 2021
@cclauss cclauss added this to the Active Sprint milestone Mar 26, 2021
@cclauss cclauss requested review from cdrini and seabelis March 26, 2021 13:42
@mekarpeles mekarpeles added the On Staging On staging.openlibrary.org label Mar 29, 2021
@mekarpeles
Copy link
Member

lgtm

@mekarpeles mekarpeles merged commit 783e4cc into internetarchive:master Mar 29, 2021
@cclauss cclauss deleted the Fix-Nothing-is-not-JSON-serializable-again branch March 29, 2021 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
On Staging On staging.openlibrary.org python Pull requests that update Python code
Projects
None yet
2 participants