Skip to content

Commit

Permalink
group_code, not group_id
Browse files Browse the repository at this point in the history
  • Loading branch information
matijakolaric committed Dec 20, 2019
1 parent 904cb2e commit 4c988e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions music_metadata/edi/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_header(self):
f'Wrong group ID: {self._header.group_code} instead of '
f'{self.sequence}')
self.errors.append(e)
self._header.error('group_id', e)
self._header.error('group_code', e)
self.valid &= self._header.valid
return self._header
return None
Expand All @@ -76,7 +76,7 @@ def get_trailer(self):
f'Wrong group ID: {self._trailer.group_code} instead of'
f'{self.sequence}')
self.errors.append(e)
self._trailer.error('group_id', e)
self._trailer.error('group_code', e)
return self._trailer
return None

Expand Down

0 comments on commit 4c988e7

Please sign in to comment.