Musical key field may be None

Fixes a `modify` test, of all things.
This commit is contained in:
Adrian Sampson 2017-06-20 16:31:00 -04:00
parent 8085d1318b
commit 336fdba9ed

View file

@ -205,6 +205,8 @@ class MusicalKey(types.String):
r'bb': 'a#',
}
null = None
def parse(self, key):
key = key.lower()
for flat, sharp in self.ENHARMONIC.items():