0006411: Navweb crashes alpha4 when creating Media pages

svn: r21315
This commit is contained in:
Tim G L Lyons 2013-02-07 16:48:45 +00:00
parent 1dfd067e52
commit f568077d1e

View File

@ -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: