From 67b6abb3df0e1ae8f5000b2b3a615199f2375399 Mon Sep 17 00:00:00 2001 From: Tim G L Lyons Date: Tue, 26 Mar 2013 19:28:53 +0000 Subject: [PATCH] 0006564: svn 21740 restores bug 0006411 - Navweb crashes during creation of Media pages svn: r21754 --- gramps/plugins/webreport/narrativeweb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/plugins/webreport/narrativeweb.py b/gramps/plugins/webreport/narrativeweb.py index de06ee0c5..daffa4aef 100644 --- a/gramps/plugins/webreport/narrativeweb.py +++ b/gramps/plugins/webreport/narrativeweb.py @@ -4593,7 +4593,7 @@ class MediaPages(BasePage): os.close(filed) self.report.archive.add(dest, initial_image_path) else: - filed = open(os.path.join(self.html_dir, initial_image_path), 'w') + filed = open(os.path.join(self.html_dir, initial_image_path), 'wb') filed.write(initial_image_data) filed.close() else: