Browse files

enable SessionInvalidatedDueToPasswordChange raised

  • Loading branch information...
1 parent a42bcec commit 70e9114b81a7566a4c9a789d74f68622733cfd0b @jfeng jfeng committed Oct 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mogli/client.rb
View
2 lib/mogli/client.rb
@@ -212,7 +212,7 @@ def determine_class(klass_or_klasses,data)
end
def raise_error_if_necessary(data)
- raise HTTPException if data.respond_to?(:code) and data.code != 200
+ raise HTTPException if data.respond_to?(:code) and data.code != 200 and data.code != 400
if data.kind_of?(Hash)
if data.keys.size == 1 and data["error"]
self.class.raise_error_by_type_and_message(data["error"]["type"], data["error"]["message"])

0 comments on commit 70e9114

Please sign in to comment.