0006564: svn 21740 restores bug 0006411 - Navweb crashes during creation of Media pages

svn: r21754
This commit is contained in:
Tim G L Lyons 2013-03-26 19:28:53 +00:00
parent 1f94813e59
commit 67b6abb3df

View File

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