Error "Radio doesn\'t have more candidates" auto close radio generator

This commit is contained in:
localhost_frssoft 2022-11-10 23:21:56 +03:00
parent 5f08977faa
commit 522a6e36b8

View file

@ -148,6 +148,8 @@ def radio_get_track(radio_session_id):
return return
if isinstance(radio_context, str): if isinstance(radio_context, str):
logger.error(radio_context) logger.error(radio_context)
if radio_context == "Radio doesn't have more candidates":
radio_event_gen.clear()
return return
if radio_context.get('error'): if radio_context.get('error'):
logger.error(radio_context.get('error')) logger.error(radio_context.get('error'))