fargo: don't let recent document cells crash on HTTP errors (#24500)

This commit is contained in:
Frédéric Péters 2018-06-13 11:45:56 +02:00
parent c24bdb033e
commit d0b5ca950a
1 changed files with 1 additions and 1 deletions

View File

@ -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))