From 5e23219c444a483aae573d774bfcf9d87409e3af Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Sat, 17 Feb 2024 19:04:07 -0800 Subject: [PATCH] ulwgl_dl_util: fix bug when printing tarball in cache - In the case the cache is empty ' found in: None' can be printed. --- ulwgl_dl_util.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ulwgl_dl_util.py b/ulwgl_dl_util.py index f2a864c..73c0609 100644 --- a/ulwgl_dl_util.py +++ b/ulwgl_dl_util.py @@ -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()