--- mp3togo/tags.py
+++ mp3togo/tags.py
@@ -150,13 +150,20 @@ class Tags(UserDict.DictMixin):
vf = ogg.vorbis.VorbisFile(filename)
out = vf.comment()
puttags(out)
- out.write_to(filename)
+ try:
+ out.write_to(filename)
+ except:
+ pass
del out
del vf
elif fmt == 'mp3':
out = ID3.ID3(filename, as_tuple=1)
puttags(out)
- out.write()
+ try:
+ out.write()
+ except:
+ # Tagging failed, but the file should be okay.
+ pass
del out
else:
self._lock.release()