commit
e58b7233ce
@ -80,10 +80,9 @@ def get_radio_title(url):
|
|||||||
except (requests.exceptions.ConnectionError,
|
except (requests.exceptions.ConnectionError,
|
||||||
requests.exceptions.HTTPError,
|
requests.exceptions.HTTPError,
|
||||||
requests.exceptions.ReadTimeout,
|
requests.exceptions.ReadTimeout,
|
||||||
requests.exceptions.Timeout) as e:
|
requests.exceptions.Timeout,
|
||||||
error_traceback = traceback.format_exc()
|
KeyError) as e:
|
||||||
error = error_traceback.rstrip().split("\n")[-1]
|
log.debug("radio: unsuccessful attempts on fetching radio title (icy)")
|
||||||
log.debug("radio: unsuccessful attempts on fetching radio title (icy): " + error)
|
|
||||||
return url
|
return url
|
||||||
|
|
||||||
|
|
||||||
|
4
util.py
4
util.py
@ -190,8 +190,8 @@ def pipe_no_wait(pipefd):
|
|||||||
import msvcrt
|
import msvcrt
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from ctypes import windll, byref, wintypes, GetLastError, WinError
|
from ctypes import windll, byref, wintypes, WinError, POINTER
|
||||||
from ctypes.wintypes import HANDLE, DWORD, POINTER, BOOL
|
from ctypes.wintypes import HANDLE, DWORD, BOOL
|
||||||
|
|
||||||
LPDWORD = POINTER(DWORD)
|
LPDWORD = POINTER(DWORD)
|
||||||
PIPE_NOWAIT = wintypes.DWORD(0x00000001)
|
PIPE_NOWAIT = wintypes.DWORD(0x00000001)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user