Added commits to every if statement just incase connection breaks.

This commit is contained in:
Austin Taylor
2017-06-18 21:34:37 -04:00
parent acad484398
commit 05da011670
7 changed files with 39 additions and 21 deletions

View File

@ -26,11 +26,12 @@ def main():
verbose=args.verbose)
vw.whisper_nessus()
sys.exit(1)
except Exception as e:
if args.verbose:
print('{red}ERROR: {error}{endc}'.format(red=bcolors.FAIL, error=e, endc=bcolors.ENDC))
sys.exit(0)
print('{red} ERROR: {error}{endc}'.format(red=bcolors.FAIL, error=e, endc=bcolors.ENDC))
sys.exit(2)