[FIX] document management, file do not exists

bzr revid: fp@tinyerp.com-20130114174355-ygieirm80j9ftixx
This commit is contained in:
Fabien Pinckaers 2013-01-14 18:43:55 +01:00
commit c095e2d340
1 changed files with 2 additions and 0 deletions

View File

@ -107,6 +107,8 @@ class ir_attachment(osv.osv):
full_path = self._full_path(cr, uid, location, fname)
try:
os.unlink(full_path)
except OSError:
_logger.error("_file_delete could not unlink %s",full_path)
except IOError:
# Harmless and needed for race conditions
_logger.error("_file_delete could not unlink %s",full_path)