make access to external file data more fault tolerant

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3986 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2010-09-09 13:10:46 +00:00
parent 80e834a1ac
commit 83490b51eb

View file

@ -99,7 +99,7 @@ class MediaAsset(MediaAssetFile, ExternalFileAdapter):
if dp is not None:
try:
return datetime.fromtimestamp(os.path.getmtime(dp))
except OSError, e:
except Exception, e:
getLogger('loops.media.asset.MediaAsset').warn(e)
return None