Skip to content

Commit

Permalink
karmalog: if fetch_url returned an error (undef), don't try to parse it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Infinoid committed May 4, 2009
1 parent 04afec1 commit 9f155c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/local/karmalog.pm
Expand Up @@ -61,7 +61,7 @@ Grab the CREDITS file, call parse_credits() with the result.
sub scrape_credits {
my $package = shift;
my $credits = $package->fetch_url($url);
$package->parse_credits($credits);
$package->parse_credits($credits) if defined $credits;
}


Expand Down

0 comments on commit 9f155c9

Please sign in to comment.