Skip to content

Commit 1ff9b1b

Browse files
committed
umu_proton: update format
1 parent 9c9bfd4 commit 1ff9b1b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

umu/umu_proton.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def get_umu_proton(
5555
# No internet and compat tool is empty, just return and raise an
5656
# exception from the caller
5757
environ["PROTONPATH"] = ""
58+
5859
return env
5960

6061

@@ -78,6 +79,7 @@ def _fetch_releases() -> list[tuple[str, str]]:
7879
) as resp:
7980
if resp.status != 200:
8081
return files
82+
8183
for release in loads(resp.read().decode("utf-8")):
8284
if not release.get("assets"):
8385
continue
@@ -319,7 +321,6 @@ def _get_latest(
319321
if file.name.startswith(("UMU-Proton", "ULWGL-Proton"))
320322
]
321323
tar_path: Path = tmp.joinpath(tarball)
322-
323324
# Ideally, an in-place differential update would be
324325
# performed instead for this job but this will do for now
325326
log.debug("Extracting %s -> %s", tar_path, steam_compat)
@@ -343,15 +344,13 @@ def _get_latest(
343344
except ValueError:
344345
log.exception("ValueError")
345346
tarball: str = files[1][0]
346-
347347
# Digest mismatched
348348
# Since we do not want the user to use a suspect file, delete it
349349
tmp.joinpath(tarball).unlink(missing_ok=True)
350350
return None
351351
except KeyboardInterrupt:
352352
tarball: str = files[1][0]
353353
proton_dir: str = tarball[: tarball.find(".tar.gz")] # Proton dir
354-
355354
# Exit cleanly
356355
# Clean up extracted data and cache to prevent corruption/errors
357356
_cleanup(tarball, proton_dir, tmp, steam_compat)

0 commit comments

Comments
 (0)