Floppy-amee 0.4.26 → 0.4.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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