ulwgl_dl_util: fix bug when printing tarball in cache

- In the case the cache is empty '  found in: None' can be printed.
This commit is contained in:
R1kaB3rN 2024-02-17 19:04:07 -08:00
parent 8f6d383c9f
commit 5e23219c44
No known key found for this signature in database

View File

@ -210,11 +210,10 @@ def _get_from_cache(
name = tarball.name
break
print(f"{name} found in: {path}")
if path:
proton_dir: str = name[: name.find(".tar.gz")] # Proton dir
print(f"{name} found in: {path}")
try:
_extract_dir(path, steam_compat)
environ["PROTONPATH"] = steam_compat.joinpath(proton_dir).as_posix()