wcs: handle more errors from blurp (#7675)
This commit is contained in:
parent
54a976eb4a
commit
dea9ab0b7d
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue