diff --git a/cpanfile b/cpanfile index 5a9a4ada0940dfe6e21a87ae6dabd3e869c9ff13..9e351e6f38530011a8392fdde5851659cd5a48f5 100644 --- a/cpanfile +++ b/cpanfile @@ -4,7 +4,6 @@ requires 'HTTP::Tiny'; requires 'IO::Compress::Gzip'; requires 'URI::Escape'; requires 'Config::IniFiles'; -requires 'Try::Tiny'; test_requires 'Test::Warnings'; test_requires 'Test::Differences'; diff --git a/modules/Bio/EnsEMBL/Feature.pm b/modules/Bio/EnsEMBL/Feature.pm index ccb4b1a656350791eed6bb0778939d06e36c59e7..083b85645804c7f9048c00b528181e448087c718 100644 --- a/modules/Bio/EnsEMBL/Feature.pm +++ b/modules/Bio/EnsEMBL/Feature.pm @@ -82,7 +82,7 @@ use Bio::EnsEMBL::Utils::Argument qw(rearrange); use Bio::EnsEMBL::Utils::Exception qw(throw warning); use Bio::EnsEMBL::Utils::Scalar qw(check_ref assert_ref); use Bio::EnsEMBL::Slice; -use Try::Tiny; + use vars qw(@ISA); use Scalar::Util qw(weaken); @@ -1462,7 +1462,7 @@ sub feature_so_acc { my $so_acc; # Get the caller class SO acc - try { + eval { $so_acc = $ref->SEQUENCE_ONTOLOGY->{'acc'}; }; @@ -1489,7 +1489,7 @@ sub feature_so_term { my $so_term; # Get the caller class SO acc - try { + eval { $so_term = $ref->SEQUENCE_ONTOLOGY->{'term'}; };