Hello! We are running our annual fundraising. Please consider making a donation if you value this freely available service or want to support people around the world working towards liberatory social change. https://riseup.net/donate.

Commit d555a02c authored by jvoisin's avatar jvoisin
Browse files

Increase audio processing robustness

parent 143bb0a5
Pipeline #71745 passed with stages
in 3 minutes and 5 seconds
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment