diff --git a/setup.py b/setup.py index f872b8e..edbe13b 100644 --- a/setup.py +++ b/setup.py @@ -282,7 +282,7 @@ class CachedWheelsCommand(_bdist_wheel): wheel_path = os.path.join(self.dist_dir, archive_basename + ".whl") print("Raw wheel path", wheel_path) os.rename(wheel_filename, wheel_path) - except urllib.error.HTTPError: + except (urllib.error.HTTPError, urllib.error.URLError): print("Precompiled wheel not found. Building from source...") # If the wheel could not be downloaded, build from source super().run()