From d0cfa33de414de3a8c62d4e2f1c93f986e894a6a Mon Sep 17 00:00:00 2001 From: yurem Date: Wed, 21 Jun 2017 22:59:20 +0300 Subject: [PATCH] Don't hide real error --- Server/integrations/twilio_sms/twilio2FA.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Server/integrations/twilio_sms/twilio2FA.py b/Server/integrations/twilio_sms/twilio2FA.py index 19ae5be729..2fa4d5211b 100644 --- a/Server/integrations/twilio_sms/twilio2FA.py +++ b/Server/integrations/twilio_sms/twilio2FA.py @@ -135,8 +135,9 @@ def authenticate(self, configurationAttributes, requestParameters, step): print 'TwilioSMs, Message Sid: %s' % (message.getSid()) return True - except: + except Exception, ex: print "TwilioSMS. Error sending message to Twilio" + print "TwilioSMS. Unexpected error:", ex return False elif step == 2: