TypeError: ‘NoneType’

You’re not returning selection, you’re printing it instead. Replace print(selection) with return selection.

Leave a Comment