Skip to content

Commit

Permalink
Don't hide real error
Browse files Browse the repository at this point in the history
  • Loading branch information
yurem committed Jun 21, 2017
1 parent b6fef12 commit d0cfa33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Server/integrations/twilio_sms/twilio2FA.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d0cfa33

Please sign in to comment.