wcs: skip errors when retrieving user forms/drafts (#21200)

This commit is contained in:
Frédéric Péters 2018-01-16 13:38:53 +01:00
parent 071946c627
commit c4635be6bd
1 changed files with 3 additions and 0 deletions

View File

@ -192,6 +192,9 @@ class WcsBlurpMixin(object):
wcs_site['data'] = json_response
elif json_response.get('err', 0) == 0:
wcs_site['data'] = json_response['data']
else:
# skip errors
continue
# and mark all items with the site info
for item in wcs_site['data']:
item['site_slug'] = wcs_slug