fixed adding tags where they already existed (but were empty)

This commit is contained in:
Adrian Sampson 2010-08-03 17:33:04 -07:00
parent 7dadbc6734
commit 959c6e55c3
2 changed files with 3 additions and 1 deletions

2
NEWS
View file

@ -33,6 +33,8 @@
record would stay around although the items were deleted.
* The setup script now makes a beet.exe startup stub on Windows;
Windows users can now just type "beet" at the prompt to run beets.
* Fixed an occasional bug where Mutagen would complain that a tag was
already present.
1.0b3
-----

View file

@ -492,7 +492,7 @@ class MediaFile(object):
type(self.mgfile).__name__)
# add a set of tags if it's missing
if not self.mgfile.tags:
if self.mgfile.tags is None:
self.mgfile.add_tags()
def save(self):