Invalid literal for float error from mutagen
This commit is contained in:
Martin Konecny 2013-04-26 11:37:46 -04:00
parent 628e075828
commit 655c1eb5a9

View file

@ -148,7 +148,8 @@ class MetadataElement(Loggable):
if self.__max_length != -1:
r = truncate_to_length(r, self.__max_length)
if self.__max_value != -1:
r = truncate_to_value(r, self.__max_value)
try: r = truncate_to_value(r, self.__max_value)
except ValueError, e: r = ''
return r
def normalize_mutagen(path):