URGENT FIX: code would fail in Ruby 1.9.3 exception does not exist