Skip to content

Commit

Permalink
add timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Dec 26, 2023
1 parent 2b6911a commit 52984a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/minimint/mist_interpolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def writer(url, pref):
fname_out1 = fname_out.replace('.xz', '')
cmd = f'cd {pref} && 7z x {fname_out} && tar -xf {fname_out1}'

ret = subprocess.run(cmd, capture_output=True, shell=True)
ret = subprocess.run(cmd, capture_output=True, shell=True, timeout=60)
if ret.returncode != 0:
raise RuntimeError('Failed to untar the files' +
ret.stdout.decode() + ret.stderr.decode())
Expand Down

0 comments on commit 52984a2

Please sign in to comment.