python/build/download: raise RuntimeError

This commit is contained in:
Max Kellermann 2016-12-29 21:21:55 +01:00
parent 52652cb609
commit 5626ace245
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ def download_and_verify(url, md5, parent_path):
calculated_md5 = file_md5(tmp_path)
if calculated_md5 != md5:
os.unlink(tmp_path)
raise "MD5 mismatch"
raise RuntimeError("MD5 mismatch")
os.rename(tmp_path, path)
return path