Skip to content

Commit

Permalink
[IMP] Remove except of IOError as its an alias to OSError in python3
Browse files Browse the repository at this point in the history
Co-authored-by: Nils Hamerlinck <nilshamerlinck@users.noreply.github.com>
  • Loading branch information
elmeriniemela and nilshamerlinck committed Nov 7, 2021
1 parent 6760507 commit 0ddf462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report_py3o/models/py3o_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def _cleanup_tempfiles(self, temporary_files):
for temporary_file in temporary_files:
try:
os.unlink(temporary_file)
except (OSError, IOError):
except OSError:
logger.error("Error when trying to remove file %s" % temporary_file)

def create_report(self, res_ids, data):
Expand Down

0 comments on commit 0ddf462

Please sign in to comment.