SAAS-596: Store file size and hash in database

Removed try/except while getting file size and hash
This commit is contained in:
drigato 2015-02-19 10:38:30 -05:00
parent 66a6a8f985
commit cc9e6efbca

View file

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