mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-25 10:58:52 -06:00
fix: name a missing standalone asset, no traceback
standalone_probe run and check raised the ProbeError of a missing fetched asset as a traceback. It is printed as an ERROR line with exit 1, like every other failed run.
This commit is contained in:
1 parent
c17d0e0cec
commit
676d0a5d9a
1 file changed
+5
-1
@@ -508,7 +508,11 @@ def probe(args: argparse.Namespace) -> int:
|
||||
|
||||
|
||||
def _probe(args: argparse.Namespace, emu: Emulator) -> int:
|
||||
meta, tree = installed(emu, args.sha256)
|
||||
try:
|
||||
meta, tree = installed(emu, args.sha256)
|
||||
except (cp.ProbeError, OSError, subprocess.SubprocessError) as exc:
|
||||
print(f"ERROR: {exc}", file=sys.stderr)
|
||||
return 1
|
||||
max_load = args.max_load if args.max_load is not None else (os.cpu_count() or 1) / 4
|
||||
load_before = cp.load_average()
|
||||
if args.record and load_before and load_before[0] > max_load:
|
||||
|
||||
Reference in new issue
Block a user