Floppy-amee 0.4.29 → 0.4.30
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/amee/profile_category.rb +4 -4
- data/lib/amee/version.rb +1 -1
- metadata +1 -1
@@ -88,8 +88,8 @@ module AMEE
|
|
88
88
|
end
|
89
89
|
# Create object
|
90
90
|
Category.new(data)
|
91
|
-
|
92
|
-
|
91
|
+
rescue
|
92
|
+
raise AMEE::BadData.new("Couldn't load ProfileCategory from JSON data. Check that your URL is correct.")
|
93
93
|
end
|
94
94
|
|
95
95
|
def self.parse_xml_profile_item(item)
|
@@ -219,8 +219,8 @@ module AMEE
|
|
219
219
|
options[:recurse] = true if recurse == true
|
220
220
|
response = connection.get(path, options)
|
221
221
|
return Category.parse(connection, response)
|
222
|
-
|
223
|
-
|
222
|
+
rescue
|
223
|
+
raise AMEE::BadData.new("Couldn't load ProfileCategory. Check that your URL is correct.")
|
224
224
|
end
|
225
225
|
|
226
226
|
def child(child_path)
|
data/lib/amee/version.rb
CHANGED