mirror of
https://github.com/tcsenpai/UWINE.git
synced 2025-06-07 03:55:21 +00:00
ulwgl_dl_util: delete references to requests module
This commit is contained in:
parent
3a5b4b10f2
commit
3e5e1e138b
@ -1,13 +1,13 @@
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from os import environ
|
from os import environ
|
||||||
from tarfile import open as tar_open
|
from tarfile import open as tar_open
|
||||||
from requests import Timeout
|
|
||||||
from typing import Dict, List, Tuple, Any, Union
|
from typing import Dict, List, Tuple, Any, Union
|
||||||
from hashlib import sha512
|
from hashlib import sha512
|
||||||
from shutil import rmtree
|
from shutil import rmtree
|
||||||
from http.client import HTTPSConnection
|
from http.client import HTTPSConnection
|
||||||
from http.client import HTTPConnection
|
from http.client import HTTPConnection
|
||||||
from http.client import HTTPResponse
|
from http.client import HTTPResponse
|
||||||
|
from http.client import HTTPException
|
||||||
from ssl import create_default_context
|
from ssl import create_default_context
|
||||||
from json import loads as loads_json
|
from json import loads as loads_json
|
||||||
from urllib.request import urlretrieve
|
from urllib.request import urlretrieve
|
||||||
@ -23,7 +23,7 @@ def get_ulwgl_proton(env: Dict[str, str]) -> Union[Dict[str, str], None]:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
files = _fetch_releases()
|
files = _fetch_releases()
|
||||||
except Timeout:
|
except HTTPException:
|
||||||
print("Offline.\nContinuing ...")
|
print("Offline.\nContinuing ...")
|
||||||
|
|
||||||
cache: Path = Path.home().joinpath(".cache/ULWGL")
|
cache: Path = Path.home().joinpath(".cache/ULWGL")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user