diff options
author | Max Kellermann <max@musicpd.org> | 2016-12-29 21:21:55 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-12-29 21:21:58 +0100 |
commit | 5626ace245213b84944c1742f16a8ea2fe074e3d (patch) | |
tree | d9092c2721b9f3bd94bf8301598c6358b6b9f3e3 /python | |
parent | 52652cb609831569c383d652b5afee5076663b5f (diff) |
python/build/download: raise RuntimeError
Diffstat (limited to 'python')
-rw-r--r-- | python/build/download.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |