Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Commit

Permalink
Use a more generic error for missing tempfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWhited committed Jun 28, 2015
1 parent 8c94519 commit bef4e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rawkit/raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def cleanup(self):
"""Cleanup temp files."""
try:
os.unlink(self._tmp)
except FileNotFoundError:
except OSError:
pass

def close(self):
Expand Down

0 comments on commit bef4e54

Please sign in to comment.