Commits

Travis Shirk  committed 4bef1ab Merge

Merged pull request #2 from default

  • Participants
  • Parent commits 6bc8c14, 97905ec
  • Branches stable

Comments (0)

Files changed (2)

File src/eyed3/id3/frames.py

 
     def parse(self, data, frame_header):
         super(PrivateFrame, self).parse(data, frame_header)
-        self.owner_id, self.owner_data = self.data.split('\x00', 1)
+        try:
+            self.owner_id, self.owner_data = self.data.split('\x00', 1)
+        except ValueError:
+            # If data doesn't contain required \x00
+            # all data is taken to be owner_id
+            self.owner_id = self.data
+
 
     def render(self):
         self.data = self.owner_id + "\x00" + self.owner_data

File src/eyed3/id3/tag.py

File contents unchanged.