wcs: handle more errors from blurp (#7675)

This commit is contained in:
Frédéric Péters 2015-06-24 16:05:39 +02:00
parent 54a976eb4a
commit dea9ab0b7d
1 changed files with 2 additions and 2 deletions

View File

@ -267,9 +267,9 @@ class WcsFormsOfCategoryCell(WcsCommonCategoryCell, WcsBlurpMixin):
context['slug'] = self.category_reference.split(':')[-1]
context['title'] = self.cached_title
context['description'] = self.cached_description
if 'forms' in context:
try:
context['forms'] = list(context['forms'][self.wcs_site]['data'])
else:
except (KeyError, TypeError) as e:
# an error occured in the blurp
context['forms'] = []
if self.ordering == 'alpha':