add better handling around error messages in do_sms function and split apart import requests

This commit is contained in:
TrustedSec 2016-12-27 15:37:34 -05:00
parent 042c292670
commit 5543f58439

View file

@ -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))