0007488: After creating narrative web report, some temporary files remains in /tmp
This commit is contained in:
parent
88a5b002df
commit
e45c1158bb
@ -4595,6 +4595,7 @@ class MediaPages(BasePage):
|
||||
os.write(filed, initial_image_data)
|
||||
os.close(filed)
|
||||
self.report.archive.add(dest, initial_image_path)
|
||||
os.unlink(dest)
|
||||
else:
|
||||
filed = open(os.path.join(self.html_dir, initial_image_path), 'wb')
|
||||
filed.write(initial_image_data)
|
||||
|
Loading…
Reference in New Issue
Block a user