Skip to content
Snippets Groups Projects
Commit d555a02c authored by Julien (jvoisin) Voisin's avatar Julien (jvoisin) Voisin
Browse files

Increase audio processing robustness

parent 143bb0a5
Branches
Tags
No related merge requests found
Pipeline #71745 passed with warnings
...@@ -27,8 +27,11 @@ class MutagenParser(abstract.AbstractParser): ...@@ -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)
try:
f.delete() f.delete()
f.save() f.save()
except mutagen.MutagenError:
raise ValueError
return True return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment