0007488: After creating narrative web report, some temporary files remains in /tmp
This commit is contained in:
parent
afd7b2c048
commit
ec4aef5054
@ -4581,6 +4581,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