Commit 5626ace2 authored by Max Kellermann's avatar Max Kellermann

python/build/download: raise RuntimeError

parent 52652cb6
...@@ -34,7 +34,7 @@ def download_and_verify(url, md5, parent_path): ...@@ -34,7 +34,7 @@ def download_and_verify(url, md5, parent_path):
calculated_md5 = file_md5(tmp_path) calculated_md5 = file_md5(tmp_path)
if calculated_md5 != md5: if calculated_md5 != md5:
os.unlink(tmp_path) os.unlink(tmp_path)
raise "MD5 mismatch" raise RuntimeError("MD5 mismatch")
os.rename(tmp_path, path) os.rename(tmp_path, path)
return path return path
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment