You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by gb...@apache.org on 2018/02/23 18:25:25 UTC

svn commit: r1825157 - /spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/Pyzor.pm

Author: gbechis
Date: Fri Feb 23 18:25:25 2018
New Revision: 1825157

URL: http://svn.apache.org/viewvc?rev=1825157&view=rev
Log:
Change a couple of die calls into warnings,
this way  pyzor throws a python error, 
all other async lookups are not aborted.
bz #7026

Modified:
    spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/Pyzor.pm

Modified: spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/Pyzor.pm
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/Pyzor.pm?rev=1825157&r1=1825156&r2=1825157&view=diff
==============================================================================
--- spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/Pyzor.pm (original)
+++ spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/Pyzor.pm Fri Feb 23 18:25:25 2018
@@ -299,13 +299,13 @@ sub pyzor_lookup {
 
     if (!@response) {
       # this exact string is needed below
-      die("no response\n");	# yes, this is possible
+      warn("no response\n");	# yes, this is possible
     }
     chomp for @response;
     dbg("pyzor: got response: " . join("\\n", @response));
 
     if ($response[0] =~ /^Traceback/) {
-      die("internal error, python traceback seen in response\n");
+      warn("internal error, python traceback seen in response\n");
     }
 
   });