* prevent the same message from being inserted at the same time in the http api

* bumped toomanyobjs
* correct pysocks raise
fixes #34
This commit is contained in:
Kevin Froman 2019-08-13 17:28:53 -05:00
parent 795266edaf
commit e86f154522
10 changed files with 36 additions and 10 deletions

View file

@ -31,8 +31,8 @@ import sys
# Ensure that PySocks is installed
try:
from urllib3.contrib.socks import SOCKSProxyManager
except ImportError:
raise ImportError("You need the PySocks module (for use with socks5 proxy to use Tor)")
except ModuleNotFoundError:
raise ModuleNotFoundError("You need the PySocks module (for use with socks5 proxy to use Tor)")
# Onionr imports
from etc import onionrvalues # For different Onionr related constants such as versions