Rename isAlive method to is_alive

Python 3.9 compatibility fix
This commit is contained in:
jo 2021-08-15 18:47:24 +02:00
parent a0b6f2e8c3
commit 81e9e9f17c
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ def __timeout(func, timeout_duration, default, args, kwargs):
timeout_duration = timeout_duration * 2 timeout_duration = timeout_duration * 2
it.join(timeout_duration) it.join(timeout_duration)
if it.isAlive(): if it.is_alive():
"""Restart Liquidsoap and try the command one more time. If it """Restart Liquidsoap and try the command one more time. If it
fails again then there is something critically wrong...""" fails again then there is something critically wrong..."""
if first_attempt: if first_attempt: