Codebase list sugar-read-activity / bcef1bc
Remove temporary file Gonzalo Odiard 9 years ago
1 changed file(s) with 8 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
785785 _logger.debug("Removing temp file %s because we will close",
786786 self._tempfile)
787787 os.unlink(self._tempfile)
788
789 # remove file used to transmit the metadata if exits
790 try:
791 metadata_file_path = self._tempfile + '.json'
792 os.unlink(metadata_file_path)
793 except OSError:
794 pass
795
788796 self._tempfile = None
789797
790798 def _save_bookmars_in_metadata(self):