[FIX] document management, file do not exists
bzr revid: fp@tinyerp.com-20130114174355-ygieirm80j9ftixx
This commit is contained in:
commit
c095e2d340
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue