Skip to content

Commit

Permalink
Update installer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdlaird committed Nov 4, 2024
1 parent 91b80ad commit 25f9ea3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyngrok/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 25f9ea3

Please sign in to comment.