Skip to content
Permalink
Browse files

flake

  • Loading branch information
ralsina committed Feb 14, 2016
1 parent bb507ab commit 041b19dc0461808e40b5a3aa95cb78e64b4507c9
Showing with 2 additions and 1 deletion.
  1. +1 −1 nikola/plugins/compile/rest/chart.py
  2. +1 −0 nikola/plugins/compile/rest/media.py
@@ -146,7 +146,7 @@ def _gen_chart(chart_type, **_options):
return '<div class="text-error">{0}</div>'.format(msg)
options = {}
data = _options.pop('data')
site = _options.pop('site')
_options.pop('site')
if 'style' in _options:
style_name = _options.pop('style')
else:
@@ -64,6 +64,7 @@ def run(self):
html = _gen_media_embed(" ".join(self.arguments))
return [nodes.raw('', html, format='html')]


def _gen_media_embed(url, *q, **kw):
if micawber is None:
msg = req_missing(['micawber'], 'use the media directive', optional=True)

0 comments on commit 041b19d

Please sign in to comment.