How to get rid of error: ‘NoneType’ object has no attribute ‘is_playing’
Hi, I have a Reaction that has a condition to see if the highlighted clip slot is playing, and if it is true, send led feedback.
self.song().view.highlighted_clip_slot.is_playing == True
However, I get this error filling up my logs whenever the slot has no clip in it:
There’s a problem with ‘Action Block 2’ in reaction ‘Clip Is Playing Feedback’ (from ‘Song – detail clip’ listener) >>
>> ‘NoneType’ object has no attribute ‘is_playing’
Is there a way to first check that the highlighted clip slot has a clip in it before checking to see if the clip is playing? I tried adding self.song().view.highlighted_clip_slot.has_clip == True as an AND condition but that did not help.
admin Changed status to publish May 22, 2024
Sign up
User registration is currently not allowed.