lib/deviceatlasapi/controller.rb in deviceatlasapi-0.0.7.2 vs lib/deviceatlasapi/controller.rb in deviceatlasapi-0.0.7.3

- old
+ new

@@ -1,10 +1,15 @@ module DeviceAtlasApi module ControllerHelpers def get_device_data - client = DeviceAtlasApi::Client.new(request) - client.get_device_data + begin + client = DeviceAtlasApi::Client.new(request) + client.get_device_data + rescue => error + puts "Error => #{error}" + return nil + end end end end \ No newline at end of file