mirror of
https://github.com/tcsenpai/UWINE.git
synced 2025-06-06 11:35:20 +00:00
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:
parent
8f6d383c9f
commit
5e23219c44
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user