Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
ensembl-io
Commits
fa2ad761
Commit
fa2ad761
authored
Sep 28, 2018
by
Tiago Grego
Browse files
eval replaced with try
parent
282c2582
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
modules/Bio/EnsEMBL/IO/Parser.pm
modules/Bio/EnsEMBL/IO/Parser.pm
+8
-7
No files found.
modules/Bio/EnsEMBL/IO/Parser.pm
View file @
fa2ad761
...
...
@@ -41,6 +41,7 @@ use strict;
use
warnings
;
use
Carp
;
use
Try::
Tiny
;
use
Bio::EnsEMBL::IO::
Utils
;
=head2 new
...
...
@@ -294,13 +295,13 @@ sub _open_as {
if
(
$subclass
)
{
my
$class
=
'
Bio::EnsEMBL::IO::Parser::
'
.
$subclass
;
eval
"
require
$class
"
;
if
(
$@
)
{
}
else
{
my
$object
=
eval
{
$class
->
$method
(
@other_args
);
};
return
$object
;
}
my
$object
;
try
{
$object
=
$class
->
$method
(
@other_args
);
};
return
$object
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment