aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2019-01-03 13:34:04 +1300
committerDavid Phillips <david@yeah.nah.nz>2019-01-03 13:34:04 +1300
commit6d6c86b0cd6ad63ed0cf784de5b7faf996a699b8 (patch)
tree7d09b9dcbc61c11758955660cf90d3c28d7c5649
parent83788d77a7dc389c9e72e3e5431da0a906421a72 (diff)
downloadidalius-6d6c86b0cd6ad63ed0cf784de5b7faf996a699b8.tar.xz
URL_Title: Don't die, just log
-rw-r--r--Plugin/URL_Title.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Plugin/URL_Title.pm b/Plugin/URL_Title.pm
index 4bc9fc8..c5c10d0 100644
--- a/Plugin/URL_Title.pm
+++ b/Plugin/URL_Title.pm
@@ -72,7 +72,7 @@ sub on_message
my $p = HTML::Parser->new(api_version => 3);
$p->handler( start => \&start_handler, "tagname,self");
$p->parse($html);
- die "Error: $!\n" if $!;
+ $logger->("Error parsing HTML: $!") if $!;
$title =~ s/\s+/ /g;
$title =~ s/(^\s+|\s+$)//g;