fnp
/
librarian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d261b56
)
ugly fix (error reporting)
author
Jan Szejko
<jan.szejko@gmail.com>
Wed, 29 Jun 2016 16:38:46 +0000
(18:38 +0200)
committer
Jan Szejko
<jan.szejko@gmail.com>
Wed, 29 Jun 2016 16:38:46 +0000
(18:38 +0200)
librarian/pyhtml.py
patch
|
blob
|
history
diff --git
a/librarian/pyhtml.py
b/librarian/pyhtml.py
index
4f8f98c
..
16a2141
100644
(file)
--- 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):