fargo: don't let recent document cells crash on HTTP errors (#24500)
This commit is contained in:
parent
c24bdb033e
commit
d0b5ca950a
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue