From 864d0bb969ebfee9f5be3aa947031c1e509b09b1 Mon Sep 17 00:00:00 2001 From: Drini Cami Date: Fri, 12 Feb 2021 16:47:05 -0500 Subject: [PATCH] Revert "Fix Nothing is not JSON serializable" --- openlibrary/core/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlibrary/core/helpers.py b/openlibrary/core/helpers.py index b4ec1476453..de212412998 100644 --- a/openlibrary/core/helpers.py +++ b/openlibrary/core/helpers.py @@ -101,7 +101,7 @@ def get_nofollow(name, event): def json_encode(d, **kw): """Same as json.dumps. """ - return json.dumps(d or {}, **kw) + return json.dumps(d, **kw) def safesort(iterable, key=None, reverse=False):