Better error message when parsing WAVE file
This commit is contained in:
parent
9739d64063
commit
586314052f
1 changed files with 2 additions and 2 deletions
|
@ -175,7 +175,7 @@ class MetadataAnalyzer(Analyzer):
|
|||
metadata["length"] = str(track_length) #time.strftime("%H:%M:%S.%f", track_length)
|
||||
metadata["length_seconds"] = length_seconds
|
||||
metadata["cueout"] = metadata["length"]
|
||||
except wave.Error:
|
||||
logging.error("Invalid WAVE file.")
|
||||
except wave.Error as ex:
|
||||
logging.error("Invalid WAVE file: {}".format(str(ex)))
|
||||
raise
|
||||
return metadata
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue