PastaSource / Musinator

Generates random lyrics from a given TXT file, and a chord progression in a randomly chosen key.
0 stars 0 forks source link

TypeError: unsupported operand type(s) for +: 'NoneType' and 'int' #7

Closed PastaSource closed 2 years ago

PastaSource commented 2 years ago

There appears to be an issue within the code which only happens occasionally, where on line 93 a type error occurs. progressiondict[chord] = progressiondict.get(chord) +1 I'm not sure why this happens, but it could be a line of code that isn't triggered constantly, which is why it's infrequent. Further investigation is needed.

PastaSource commented 2 years ago

Issue has been resolved in latest commit.