Skip to content

Commit

Permalink
catch only the Dynamoid::Errors::ConditionalCheckFailedException exce…
Browse files Browse the repository at this point in the history
…ption
  • Loading branch information
ananthakumaran committed May 11, 2012
1 parent eeb0515 commit 0b04518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dynamoid/persistence.rb
Expand Up @@ -150,7 +150,7 @@ def update!(conditions = {}, &block)
def update(conditions = {}, &block)
update!(conditions, &block)
true
rescue
rescue Dynamoid::Errors::ConditionalCheckFailedException
false
end

Expand Down

0 comments on commit 0b04518

Please sign in to comment.