[FIX] document management, file do not exists
authorFabien Pinckaers <fp@tinyerp.com>
Mon, 14 Jan 2013 17:43:55 +0000 (18:43 +0100)
committerFabien Pinckaers <fp@tinyerp.com>
Mon, 14 Jan 2013 17:43:55 +0000 (18:43 +0100)
bzr revid: fp@tinyerp.com-20130114174355-ygieirm80j9ftixx

1  2 
openerp/addons/base/ir/ir_attachment.py

@@@ -107,6 -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)