A quick look at the code shows that the None comes from
self.schan = self.sobj.play()
and the doc of the self.sobj.play() method says:
/*DOC*/ "Sound.play([loops, [maxtime]]) -> Channel\n"
/*DOC*/ "play sound\n"
/*DOC*/ "\n"
/*DOC*/ "Starts playing a song on an available channel. If no channels are\n"
/*DOC*/ "available, it will not play and return None.
so I guess that is the case that was hit, and the None value
is not tested for.
Hi,
A quick look at the code shows that the None comes from
self.schan = self.sobj.play()
and the doc of the self.sobj.play() method says:
/*DOC*/ "Sound.play([loops, [maxtime]]) -> Channel\n"
/*DOC*/ "play sound\n"
/*DOC*/ "\n"
/*DOC*/ "Starts playing a song on an available channel. If no channels are\n"
/*DOC*/ "available, it will not play and return None.
so I guess that is the case that was hit, and the None value
is not tested for.
Thanks,
James