remove useless code and imports

This commit is contained in:
Martin Konecny 2013-06-12 17:36:24 -04:00
parent fb80530069
commit c365373aab
1 changed files with 0 additions and 5 deletions

View File

@ -1,6 +1,4 @@
import threading
import logging
import pypofetch
def __timeout(func, timeout_duration, default, args, kwargs):
@ -19,15 +17,12 @@ def __timeout(func, timeout_duration, default, args, kwargs):
it.start()
it.join(timeout_duration)
logger = logging.getLogger()
if it.isAlive():
"""Restart Liquidsoap and try the command one more time. If it
fails again then there is something critically wrong..."""
if first_attempt:
#restart liquidsoap
pypofetch.PypoFetch.ref.restart_liquidsoap()
pass
else:
raise Exception("Thread did not terminate")
else: