From 1519b67f9faec66a46216aea21bf1190d9c07b96 Mon Sep 17 00:00:00 2001 From: boyska Date: Sun, 7 May 2017 01:07:08 +0200 Subject: [PATCH] unicode fix, py2 ti odio --- plugins/talks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/talks.py b/plugins/talks.py index 2e128b6..0943e1d 100644 --- a/plugins/talks.py +++ b/plugins/talks.py @@ -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('', '

%s

' % + output.append(nodes.raw('', u'

%s

' % day.strftime('%A %d').title(), format='html')) output.append(nodes.raw('', render, format='html'))