mirror of
https://github.com/trustedsec/social-engineer-toolkit
synced 2025-02-20 07:18:35 +00:00
add better handling around error messages in do_sms function and split apart import requests
This commit is contained in:
parent
042c292670
commit
5543f58439
1 changed files with 4 additions and 1 deletions
|
@ -72,9 +72,12 @@ def _do_sms():
|
|||
|
||||
try:
|
||||
import requests
|
||||
_do_sms()
|
||||
|
||||
except ImportError:
|
||||
core.print_error("Looks like you dont have python-requests installed. "
|
||||
"Please install (apt-get install python-requests) and try again.")
|
||||
input("Press {return} to continue.")
|
||||
|
||||
try:
|
||||
_do_sms()
|
||||
except Exception as err: print_error("Something went wrong, printing error: " + str(err))
|
||||
|
|
Loading…
Add table
Reference in a new issue