diff --git a/recipes/barrons.recipe b/recipes/barrons.recipe index 4635f49c53..276fd9bd68 100644 --- a/recipes/barrons.recipe +++ b/recipes/barrons.recipe @@ -58,7 +58,7 @@ def make_html(a): if typ == 'listelement': return f'
  • {make_hlinks(a)}
  • ' if typ == 'dynamicinset': - if 'datawrapper-chart-' in a['webview']['value']: + if a.get('webview') and 'datawrapper-chart-' in a['webview']['value']: dw = re.search(r'datawrapper-chart-(.{5})', a['webview']['value']).group(1) return f'' return ''