From abe51a0fad46f3b14b17d055339ebb94bd0fbacf Mon Sep 17 00:00:00 2001 From: Stevan Date: Tue, 17 Sep 2019 19:59:06 -0400 Subject: Added exception handling if pysocks is not installed. --- tmap | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tmap b/tmap index f6261d8..972ff01 100755 --- a/tmap +++ b/tmap @@ -1,12 +1,17 @@ #!/usr/bin/env python3 import sys from socket import * -import socks import argparse import time from ipaddress import * import threading +try: + import socks +except ImportError as ie: + print("Socks module not found.\nMake sure to install all requirements with\npip3 install -r requirments.txt") + exit() + VERSION='1.3.1' def getPortInfo(port, portfile): -- cgit v1.2.3