From 721dffe62ca6a37e6b496907af4eb007d59bff1c Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 27 May 2022 13:00:03 +0200 Subject: [PATCH 1/1] fix for error msg --- src/librarian/elements/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librarian/elements/base.py b/src/librarian/elements/base.py index 46ae29f..d17747d 100644 --- a/src/librarian/elements/base.py +++ b/src/librarian/elements/base.py @@ -221,7 +221,7 @@ class WLElement(etree.ElementBase): if self.SECTION_PRECEDENCE: assert isinstance(self.getparent(), (Master, DlugiCytat, PoezjaCyt, Footnote)), \ 'Header {} inside a <{}> instead of a master.'.format( - etree.tostring(self), self.getparent().tag) + etree.tostring(self, encoding='unicode'), self.getparent().tag) for c in self: if isinstance(c, WLElement): -- 2.20.1