From 22290f82670463d15f15f42cf1fe3ead76a6c08e Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Wed, 29 Jun 2016 18:38:46 +0200 Subject: [PATCH] ugly fix (error reporting) --- librarian/pyhtml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librarian/pyhtml.py b/librarian/pyhtml.py index 4f8f98c..16a2141 100644 --- a/librarian/pyhtml.py +++ b/librarian/pyhtml.py @@ -659,7 +659,7 @@ class EduModuleFormat(Format): order = {pmf: i for (i, pmf) in enumerate(self.PRIMARY_MATERIAL_FORMATS)} mats = self.materials_by_slug.get(slug, {}).items() if not mats: - print "!! Material missing: '%s'" % slug + print ("!! Material missing: '%s'" % slug).encode('utf-8') return sorted(mats, key=lambda (x, y): order.get(x, x)) def url_for_material(self, slug, fmt): -- 2.20.1