Change request import check at the beginning of the main file, to avoid

the error 23.
This commit is contained in:
laramies 2015-07-05 17:03:13 +01:00
parent 4552322fed
commit c6d21905f9

View file

@ -7,6 +7,13 @@
from socket import *
import re
import getopt
try:
import requests
except:
print "Request library not found, please install it before proceeding\n"
sys.exit()
from discovery import *
from lib import htmlExport
from lib import hostchecker
@ -24,11 +31,6 @@
print "* cmartorella@edge-security.com *"
print "*******************************************************************\n\n"
try:
import requests
except:
print "Request library not found, please install it before proceeding\n"
sys.exit()
def usage():