From f925da2e46dbce7a4b96538da30c49408540a6fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 13 Jun 2018 11:45:56 +0200 Subject: [PATCH] fargo: don't let recent document cells crash on HTTP errors (#24500) --- combo/apps/fargo/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/combo/apps/fargo/models.py b/combo/apps/fargo/models.py index 25f671c..9801341 100644 --- a/combo/apps/fargo/models.py +++ b/combo/apps/fargo/models.py @@ -70,7 +70,7 @@ class RecentDocumentsCell(CellBase): headers={'accept': 'application/json'}) if response.status_code == 200: return response.json() - return None + return {} def render(self, context): context.update(self.get_json('api/documents/recently-added/', context)) -- 2.17.1