alexdeathway / torswitch

Python wrapper for an easy-to-use interaction with the Tor proxy and controlling IP address rotations.

Home Page:https://pypi.org/project/torswitch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a verification for session check

alexdeathway opened this issue · comments

If class function is called before session is created it can cause "Connection refused" error, add conditional to method to verify if session is created in TorProtocol.Start() first.

[solved] added a wrapper to check and proceed.