From 6d6c86b0cd6ad63ed0cf784de5b7faf996a699b8 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Thu, 3 Jan 2019 13:34:04 +1300 Subject: URL_Title: Don't die, just log --- Plugin/URL_Title.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Plugin') 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; -- cgit v1.1