unicode fix, py2 ti odio

This commit is contained in:
boyska 2017-05-07 01:07:08 +02:00
parent a51a7b1c8c
commit 1519b67f9f
No known key found for this signature in database
GPG key ID: 7395DCAE58289CA9

View file

@ -65,7 +65,7 @@ def get_global_data():
with io.open(fname, encoding='utf8') as buf:
try:
data = yaml.load(buf)
except Exception as exc:
except Exception:
logging.exception("Syntax error reading %s; skipping", fname)
return None
if data is None:
@ -205,7 +205,7 @@ class TalkGridDirective(Directive):
mintime=mintime, maxtime=maxtime,
timestep=GRID_STEP,
)
output.append(nodes.raw('', '<h4>%s</h4>' %
output.append(nodes.raw('', u'<h4>%s</h4>' %
day.strftime('%A %d').title(),
format='html'))
output.append(nodes.raw('', render, format='html'))