Merge pull request #2033 from joaomfbh/tor_exception_handling

Add exception handling for Tor option
pull/2123/head
Paul Pfeister 3 weeks ago committed by GitHub
commit f2090bd198
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -200,7 +200,12 @@ def sherlock(
# Create session based on request methodology
if tor or unique_tor:
# Requests using Tor obfuscation
underlying_request = TorRequest()
try:
underlying_request = TorRequest()
except OSError:
print("Tor not found in system path. Unable to continue.\n")
sys.exit(query_notify.finish())
underlying_session = underlying_request.session
else:
# Normal requests

Loading…
Cancel
Save