cc-4421: Added for wav length
This commit is contained in:
parent
12e27e659a
commit
6c75a086e1
2 changed files with 6 additions and 6 deletions
|
@ -362,7 +362,7 @@ def file_md5(path,max_length=100):
|
|||
# whatever it was able to read which is acceptable behaviour
|
||||
m.update(f.read(max_length))
|
||||
return m.hexdigest()
|
||||
else: raise ValueError("'%s' must exist to find its md5")
|
||||
else: raise ValueError("'%s' must exist to find its md5" % path)
|
||||
|
||||
def encode_to(obj, encoding='utf-8'):
|
||||
# TODO : add documentation + unit tests for this function
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue