Merge branch 'cc-5709-airtime-analyzer-store-file-size-and-hash-in-db' into saas-store-file-size-and-hash-in-db

This commit is contained in:
drigato 2015-02-19 10:51:53 -05:00
commit 0f921cb481

View file

@ -99,7 +99,6 @@ class MetadataAnalyzer(Analyzer):
pass pass
# Get file size and md5 hash of the file # Get file size and md5 hash of the file
try:
metadata["filesize"] = os.path.getsize(filename) metadata["filesize"] = os.path.getsize(filename)
with open(filename, 'rb') as fh: with open(filename, 'rb') as fh:
@ -110,8 +109,6 @@ class MetadataAnalyzer(Analyzer):
break break
m.update(data) m.update(data)
metadata["md5_hash"] = m.hexdigest() metadata["md5_hash"] = m.hexdigest()
except (OSError, IOError) as e:
raise e