From 25f9ea3396274a01202bf8ec34546382289d4269 Mon Sep 17 00:00:00 2001 From: Alex Laird Date: Mon, 4 Nov 2024 13:48:02 -0600 Subject: [PATCH] Update installer.py --- pyngrok/installer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyngrok/installer.py b/pyngrok/installer.py index f4766c9..70bc1bc 100644 --- a/pyngrok/installer.py +++ b/pyngrok/installer.py @@ -6,13 +6,13 @@ import os import platform import socket -import ssl import sys import tempfile import time import zipfile from http import HTTPStatus from typing import Any, Dict, Optional +from urllib.error import URLError from urllib.request import urlopen import yaml @@ -294,7 +294,7 @@ def _download_file(url: str, _clear_progress() return download_path - except (socket.timeout, ssl.SSLError) as e: + except (socket.timeout, URLError) as e: if retries < DEFAULT_RETRY_COUNT: logger.warning("ngrok download failed, retrying in 0.5 seconds ...") time.sleep(0.5)