livekit / python-sdks

LiveKit real-time and server SDKs for Python
https://docs.livekit.io
Apache License 2.0
80 stars 26 forks source link

Set rparticipant variable before emit event #74

Closed MDBox closed 10 months ago

MDBox commented 10 months ago

This PR sets the rparticipant variable to None in the data_received event. This addresses the error Local variable referenced before assignment. This may have negative effects in users callback functions if there isn't a None type check before referencing participant.

CLAassistant commented 10 months ago

CLA assistant check
All committers have signed the CLA.