cartads: return empty list if requested type has no CERFA associated (#30883)
This commit is contained in:
parent
8c1391b88b
commit
fd2672f6f2
|
@ -172,7 +172,7 @@ class CartaDSCS(BaseResource):
|
|||
{'id': x['Identifiant'],
|
||||
'text': u'%s: %s' % (x['Nom'], x['Description']),
|
||||
'url': x['UrlTelechargement'],
|
||||
} for x in resp]}
|
||||
} for x in resp or []]}
|
||||
|
||||
@endpoint(perm='can_access',
|
||||
description=_('Get list of file items'),
|
||||
|
|
Loading…
Reference in New Issue