We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20ebe90 commit 427743dCopy full SHA for 427743d
kegg/kegg.php
@@ -739,7 +739,11 @@ function parseEntry($lfile)
739
740
function parseKGML($lfile)
741
{
742
- $pathway = simplexml_load_file($lfile) or die("Error: Cannot create object");
+ $pathway = simplexml_load_file($lfile);
743
+ if($pathway === false) {
744
+ echo "Error in parsing $lfile".PHP_EOL;
745
+ return;
746
+ }
747
$pathway_id = str_replace("path","kegg",$pathway['name']);
748
$base_id = str_replace("kegg","kegg_resource",$pathway_id).".";
749
0 commit comments