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 threading
import logging
import pypofetch import pypofetch
def __timeout(func, timeout_duration, default, args, kwargs): def __timeout(func, timeout_duration, default, args, kwargs):
@ -19,15 +17,12 @@ def __timeout(func, timeout_duration, default, args, kwargs):
it.start() it.start()
it.join(timeout_duration) it.join(timeout_duration)
logger = logging.getLogger()
if it.isAlive(): if it.isAlive():
"""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:
#restart liquidsoap #restart liquidsoap
pypofetch.PypoFetch.ref.restart_liquidsoap() pypofetch.PypoFetch.ref.restart_liquidsoap()
pass
else: else:
raise Exception("Thread did not terminate") raise Exception("Thread did not terminate")
else: else: