Permalink
Browse files

YAML throws different exceptions in 1.9.2 and 1.8.7

  • Loading branch information...
1 parent 3943b72 commit ed7ca218bf9cdf908f6d652cfb3f5672390908f7 Philipp Comans committed Oct 21, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 bin/phyta-assign
  2. +1 −1 bin/phyta-split
View
@@ -64,7 +64,7 @@ filter_array = nil
if opts[:filter_given]
begin
filter_array = YAML::load(File.open(opts[:filter], 'r'))
- rescue ArgumentError => e
+ rescue Exception => e
puts "Error: #{e.message}"
puts e.backtrace.join("\n")
puts "Please see https://github.com/PalMuc/bio-phyta/wiki/Custom-filters for instructions on how to write filters"
View
@@ -56,7 +56,7 @@ filter_array = nil
if opts[:filter_given]
begin
filter_array = YAML::load(File.open(opts[:filter], 'r'))
- rescue ArgumentError => e
+ rescue Exception => e
puts "Error: #{e.message}"
puts e.backtrace.join("\n")
puts "Please see https://github.com/PalMuc/bio-phyta/wiki/Custom-filters for instructions on how to write filters"

0 comments on commit ed7ca21

Please sign in to comment.