Skip to content

Commit

Permalink
Flag field bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
matijakolaric committed Dec 19, 2019
1 parent 41e4bf2 commit f1e948d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion music_metadata/edi/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def __init__(self, *args, **kwargs):
def __set__(self, instance, value):
if self._mandatory and value == 'U':
# Unknown resolves to None, so super() makes no sense
self._valuedict[instance] = None
instance.__dict__[self._name] = None
return
value = dict(
(('Y', True), ('N', False), ('U', None), (' ', None))).get(value,
Expand Down

0 comments on commit f1e948d

Please sign in to comment.