[IMP] Remove except of IOError as its an alias to OSError in python3
Co-authored-by: Nils Hamerlinck <nilshamerlinck@users.noreply.github.com>pull/744/head
parent
2627cb1e9f
commit
2c8fa5a9e7
|
@ -340,7 +340,7 @@ class Py3oReport(models.TransientModel):
|
|||
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):
|
||||
|
|
Loading…
Reference in New Issue