[Pkg-privacy-commits] [mat] 38/68: Fix mutagen's behaviour on file without metadata block
Sascha Steinbiss
sascha at steinbiss.name
Sun Jan 3 12:32:41 UTC 2016
This is an automated email from the git hooks/post-receive script.
sascha-guest pushed a commit to branch master
in repository mat.
commit 43804de4649ec8444bf4b23fd391226446eb85a5
Author: jvoisin <julien.voisin at dustri.org>
Date: Fri Dec 4 00:12:31 2015 +0100
Fix mutagen's behaviour on file without metadata block
---
libmat/mutagenstripper.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libmat/mutagenstripper.py b/libmat/mutagenstripper.py
index 692c56f..e7f2a96 100644
--- a/libmat/mutagenstripper.py
+++ b/libmat/mutagenstripper.py
@@ -28,7 +28,10 @@ class MutagenStripper(parser.GenericParser):
if self.backup:
self.create_backup_copy()
self.mfile.delete()
- self.mfile.save()
+ try: # mutagen will choke on files without a metadata block
+ self.mfile.save()
+ except ValueError:
+ pass
return True
def get_meta(self):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/mat.git
More information about the Pkg-privacy-commits
mailing list