Unverified Commit beb8b8ba authored by Corey James Levinson's avatar Corey James Levinson Committed by GitHub
Browse files

add exception to Timeout Error (#963)

When timeout connecting, you get URLError: <urlopen error timed out>, In that case, build it from source.
parent 22339db1
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment