CC-2441 : media-monitor exception on import, cancels all importing

checking if file md fails.
This commit is contained in:
Naomi Aro 2011-06-28 14:34:16 +02:00
parent 4eff714f32
commit 164c06a5e5
3 changed files with 30 additions and 16 deletions

View file

@ -104,11 +104,17 @@ class AirtimeMetadata:
self.logger.info("getting info from filepath %s", filepath)
md = {}
md5 = self.get_md5(filepath)
md['MDATA_KEY_MD5'] = md5
try:
md = {}
md5 = self.get_md5(filepath)
md['MDATA_KEY_MD5'] = md5
file_info = mutagen.File(filepath, easy=True)
except Exception, e:
self.logger.error("failed getting metadata from %s", filepath)
return None
file_info = mutagen.File(filepath, easy=True)
self.logger.info(file_info)