Floppy-amee 0.4.26 → 0.4.27
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/amee/profile_item.rb +3 -3
- data/lib/amee/version.rb +1 -1
- metadata +1 -1
data/lib/amee/profile_item.rb
CHANGED
@@ -105,12 +105,12 @@ module AMEE
|
|
105
105
|
response = profile.connection.post(profile.full_path, options)
|
106
106
|
category = Category.parse(profile.connection, response)
|
107
107
|
return category.item(options)
|
108
|
-
|
109
|
-
|
108
|
+
rescue
|
109
|
+
raise AMEE::BadData.new("Couldn't create ProfileItem. Check that your information is correct.")
|
110
110
|
end
|
111
111
|
|
112
112
|
def update(options = {})
|
113
|
-
connection.put(full_path, options)
|
113
|
+
response = connection.put(full_path, options)
|
114
114
|
return Item.parse(connection, response)
|
115
115
|
rescue
|
116
116
|
raise AMEE::BadData.new("Couldn't update ProfileItem. Check that your information is correct.")
|
data/lib/amee/version.rb
CHANGED