From a3a758fd139acdba8e12e8e3dc2e4d5e76b89954 Mon Sep 17 00:00:00 2001 From: Tim G L Lyons Date: Thu, 7 Feb 2013 16:42:16 +0000 Subject: [PATCH] 0006411: Navweb crashes alpha4 when creating Media pages svn: r21314 --- 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 d7c1a6657..e1b4aa51e 100644 --- a/gramps/plugins/webreport/narrativeweb.py +++ b/gramps/plugins/webreport/narrativeweb.py @@ -4588,7 +4588,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: