From f1e948d8b6787f1b0a01cfcd193325c414212878 Mon Sep 17 00:00:00 2001 From: matijakolaric Date: Thu, 19 Dec 2019 22:26:37 +0100 Subject: [PATCH] Flag field bugfix --- music_metadata/edi/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music_metadata/edi/fields.py b/music_metadata/edi/fields.py index ac598eb..1f57ab4 100644 --- a/music_metadata/edi/fields.py +++ b/music_metadata/edi/fields.py @@ -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,