lib/smess/outputs/clickatell.rb in smess-1.0.4 vs lib/smess/outputs/clickatell.rb in smess-1.0.5
- old
+ new
@@ -38,10 +38,10 @@
messages.each do |msg|
rsp = api.send_message(sms.to, msg.encode('ISO-8859-1'), {from: from, concat: 3, callback: 7})
responses << rsp
end
result = normal_result(responses.first)
- rescue Exception => e
+ rescue => e
# connection problem or some error
result = result_for_error(e)
end
result
end