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
No related branches found
No related tags found
No related merge requests found
Pipeline #71745 passed with warnings
......@@ -27,8 +27,11 @@ class MutagenParser(abstract.AbstractParser):
def remove_all(self) -> bool:
shutil.copy(self.filename, self.output_filename)
f = mutagen.File(self.output_filename)
f.delete()
f.save()
try:
f.delete()
f.save()
except mutagen.MutagenError:
raise ValueError
return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment