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

@ -53,7 +53,7 @@ class LiquidsoapConnection:
try:
self.connect()
return self
except (ConnectionError, TimeoutError) as exception:
except OSError as exception:
self._sock = None
self._lock.release()
raise exception