Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0b0d779

Browse filesBrowse files
committed
MNT: add informative exception message
1 parent e8c7d3e commit 0b0d779
Copy full SHA for 0b0d779

File tree

Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed

‎setupext.py

Copy file name to clipboardExpand all lines: setupext.py
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,10 @@ def write_cache(local_fn, data):
136136
file_sha = get_fd_hash(file_contents)
137137

138138
if file_sha != sha:
139-
raise Exception
139+
raise Exception(("The download file does not match the "
140+
"expected sha. {url} was expected to have "
141+
"{sha} but it had {file_sha}").format(
142+
sha=sha, file_sha=file_sha, url=url))
140143

141144
try:
142145
write_cache(sha, file_contents)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.