X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FText%2FTradition%2FParser%2FCollateX.pm;h=7775a75b9d83ee106890b426be7e70c5237fc43b;hb=f6066bac61bc5609c60d48df17aad924c8944177;hp=2c13921225eea7c5f48fc309300ea3cac677dbb2;hpb=9463b0bff2afe6185d9bdfda49ce9c9cdc176049;p=scpubgit%2Fstemmatology.git diff --git a/lib/Text/Tradition/Parser/CollateX.pm b/lib/Text/Tradition/Parser/CollateX.pm index 2c13921..7775a75 100644 --- a/lib/Text/Tradition/Parser/CollateX.pm +++ b/lib/Text/Tradition/Parser/CollateX.pm @@ -50,7 +50,8 @@ sub parse { my %node_data = %$n; my $nodeid = delete $node_data{$IDKEY}; my $token = delete $node_data{$CONTENTKEY}; - unless( $nodeid && $token ) { + unless( defined $nodeid && defined $token ) { + $DB::single = 1; warn "Did not find an ID or token for graph node, can't add it"; next; }