You’re not returning selection, you’re printing it instead. Replace print(selection) with return selection.
0
solved TypeError: ‘NoneType’ [duplicate]
 
You’re not returning selection, you’re printing it instead. Replace print(selection) with return selection.
0
solved TypeError: ‘NoneType’ [duplicate]