Skip to content

Commit

Permalink
Code Readablity
Browse files Browse the repository at this point in the history
  • Loading branch information
antonpirker committed Jun 19, 2023
1 parent 1e83ad2 commit 92a7409
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sentry_sdk/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,13 +450,12 @@ def _make_pool(
# at import time if pysocks is not installed
from urllib3.contrib.socks import SOCKSProxyManager # type: ignore
except ImportError:
use_socks_proxy = False
logger.warning(
"You have configured a SOCKS proxy (%s) but support for SOCKS proxies is not installed. Please add `PySocks` (or `urllib3` with the `[socks]` extra) to your dependencies.",
proxy,
)

use_socks_proxy = False

if use_socks_proxy:
return SOCKSProxyManager(proxy, **opts)
else:
Expand Down

0 comments on commit 92a7409

Please sign in to comment.