From beb8b8ba9f69475a3fe97a076825f3eea5f537b4 Mon Sep 17 00:00:00 2001 From: Corey James Levinson Date: Sun, 26 May 2024 15:33:03 -0400 Subject: [PATCH] add exception to Timeout Error (#963) When timeout connecting, you get URLError: , In that case, build it from source. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()