From 5626ace245213b84944c1742f16a8ea2fe074e3d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 29 Dec 2016 21:21:55 +0100 Subject: python/build/download: raise RuntimeError --- python/build/download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/build/download.py b/python/build/download.py index 62a844435..d41b30a5b 100644 --- a/python/build/download.py +++ b/python/build/download.py @@ -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 -- cgit v1.2.3