Issue# 303. Added validation to the return code of the os.system call to check if the fuzzywuzzy installation is success.
This commit is contained in:
@@ -17,7 +17,10 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
import os
|
import os
|
||||||
print ('%s fuzzywuzzy isn\'t installed, installing now.' % info)
|
print ('%s fuzzywuzzy isn\'t installed, installing now.' % info)
|
||||||
os.system('pip3 install fuzzywuzzy')
|
ret_code = os.system('pip3 install fuzzywuzzy')
|
||||||
|
if(ret_code != 0):
|
||||||
|
print('%s fuzzywuzzy installation failed.' % bad)
|
||||||
|
quit()
|
||||||
print ('%s fuzzywuzzy has been installed, restart XSStrike.' % info)
|
print ('%s fuzzywuzzy has been installed, restart XSStrike.' % info)
|
||||||
quit()
|
quit()
|
||||||
except ImportError: # throws error in python2
|
except ImportError: # throws error in python2
|
||||||
|
|||||||
Reference in New Issue
Block a user