summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libmat2/audio.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/libmat2/audio.py b/libmat2/audio.py
index 16b86f0..598d93d 100644
--- a/libmat2/audio.py
+++ b/libmat2/audio.py
@@ -27,8 +27,11 @@ class MutagenParser(abstract.AbstractParser):
27 def remove_all(self) -> bool: 27 def remove_all(self) -> bool:
28 shutil.copy(self.filename, self.output_filename) 28 shutil.copy(self.filename, self.output_filename)
29 f = mutagen.File(self.output_filename) 29 f = mutagen.File(self.output_filename)
30 f.delete() 30 try:
31 f.save() 31 f.delete()
32 f.save()
33 except mutagen.MutagenError:
34 raise ValueError
32 return True 35 return True
33 36
34 37