mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP] Remove except of IOError as its an alias to OSError in python3
Co-authored-by: Nils Hamerlinck <nilshamerlinck@users.noreply.github.com>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user