Skip to content

Commit

Permalink
Don't rescue Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusvk committed Sep 28, 2015
1 parent 5ecca06 commit 9bf8206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/tasks/exchanges.rake
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace :exchanges do
item_charger.charge_for_items
rescue Spree::UnreturnedItemCharger::ChargeFailure => e
failure = { message: e.message }
rescue Exception => e
rescue => e
failure = { message: "#{e.class}: #{e.message}" }
end

Expand Down

0 comments on commit 9bf8206

Please sign in to comment.