lib/moonshado/sms.rb in moonshado-sms-0.4.1 vs lib/moonshado/sms.rb in moonshado-sms-0.5.0

- old
+ new

@@ -9,10 +9,14 @@ def configure self.configuration ||= Configuration.new yield(configuration) self.sender = Sender.new(configuration) if configuration.auto_register_keywords - Moonshado::Sms::Keywords.register_keywords + begin + Moonshado::Sms::Keywords.register_keywords + rescue Exception => e + puts "Failed to auto register keywords: #{e.message}" + end end end def find(id) response = sender.get(configuration.sms_uri + "/#{id}") \ No newline at end of file