Skip to content

Commit d8a802e

Browse files
print log and catch all errors for downloading whl (#723)
1 parent a41718d commit d8a802e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ def run(self):
228228
print("Raw wheel path", wheel_path)
229229

230230
os.rename(wheel_filename, wheel_path)
231-
except (urllib.error.HTTPError, urllib.error.URLError):
232-
print("Precompiled wheel not found. Building from source...")
231+
except BaseException:
232+
print(f"Precompiled wheel not found in url: {wheel_url}. Building from source...")
233233
# If the wheel could not be downloaded, build from source
234234
super().run()
235235

0 commit comments

Comments
 (0)