From 3e5e1e138b7a441eae64857edce529de350bfc13 Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Fri, 16 Feb 2024 18:40:00 -0800 Subject: [PATCH] ulwgl_dl_util: delete references to requests module --- ulwgl_dl_util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ulwgl_dl_util.py b/ulwgl_dl_util.py index 3d07111..58c9ead 100644 --- a/ulwgl_dl_util.py +++ b/ulwgl_dl_util.py @@ -1,13 +1,13 @@ from pathlib import Path from os import environ from tarfile import open as tar_open -from requests import Timeout from typing import Dict, List, Tuple, Any, Union from hashlib import sha512 from shutil import rmtree from http.client import HTTPSConnection from http.client import HTTPConnection from http.client import HTTPResponse +from http.client import HTTPException from ssl import create_default_context from json import loads as loads_json from urllib.request import urlretrieve @@ -23,7 +23,7 @@ def get_ulwgl_proton(env: Dict[str, str]) -> Union[Dict[str, str], None]: try: files = _fetch_releases() - except Timeout: + except HTTPException: print("Offline.\nContinuing ...") cache: Path = Path.home().joinpath(".cache/ULWGL")