fix(playout): catch oserror in liquidsoap client

Prevent playout crash when liquidsoap is not yet reachable.
This commit is contained in:
jo 2023-03-29 16:47:13 +02:00 committed by Kyle Robbertze
parent f902537056
commit 6412b17996
4 changed files with 17 additions and 17 deletions

View file

@ -58,7 +58,7 @@ class LiquidsoapClient:
version = self.version()
logger.info("found version %s", version)
return version
except (ConnectionError, TimeoutError) as exception:
except OSError as exception:
logger.warning("could not get version: %s", exception)
timeout -= 1
sleep(1)