Increase audio processing robustness
This commit is contained in:
parent
143bb0a5f3
commit
d555a02c90
@ -27,8 +27,11 @@ class MutagenParser(abstract.AbstractParser):
|
|||||||
def remove_all(self) -> bool:
|
def remove_all(self) -> bool:
|
||||||
shutil.copy(self.filename, self.output_filename)
|
shutil.copy(self.filename, self.output_filename)
|
||||||
f = mutagen.File(self.output_filename)
|
f = mutagen.File(self.output_filename)
|
||||||
f.delete()
|
try:
|
||||||
f.save()
|
f.delete()
|
||||||
|
f.save()
|
||||||
|
except mutagen.MutagenError:
|
||||||
|
raise ValueError
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user