ulwgl_dl_util: move var inside block

This commit is contained in:
R1kaB3rN 2024-02-16 11:41:55 -08:00
parent f24dbc8591
commit 05d7f4d141
No known key found for this signature in database

View File

@ -256,8 +256,6 @@ def _get_latest(
When the digests mismatched or when interrupted, refer to cache for an old version When the digests mismatched or when interrupted, refer to cache for an old version
""" """
if files: if files:
tarball: str = files[1][0]
print("Fetching latest release ...") print("Fetching latest release ...")
try: try:
_fetch_proton(env, steam_compat, cache, files) _fetch_proton(env, steam_compat, cache, files)
@ -267,6 +265,8 @@ def _get_latest(
# Refer to the cache for old version next # Refer to the cache for old version next
return None return None
except KeyboardInterrupt: except KeyboardInterrupt:
tarball: str = files[1][0]
# Exit cleanly # Exit cleanly
# Clean up extracted data and cache to prevent corruption/errors # Clean up extracted data and cache to prevent corruption/errors
# Refer to the cache for old version next # Refer to the cache for old version next