fixed windows tempfile without the pass in try-except