From e35883b4393c092b33ac509c44757ec99c0a16d2 Mon Sep 17 00:00:00 2001 From: montanaro Date: Sun, 14 Aug 2011 21:28:50 +0000 Subject: [PATCH] Silly mistake. Pointed out by Stefan Behnel in item #3390891. --- spambayes/spambayes/classifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spambayes/spambayes/classifier.py b/spambayes/spambayes/classifier.py index 0e6c60f5..9df9e308 100644 --- a/spambayes/spambayes/classifier.py +++ b/spambayes/spambayes/classifier.py @@ -606,7 +606,7 @@ def setup(self): if os.path.exists(self.http_error_cache_name): try: self.http_error_urls = pickle_read(self.http_error_cache_name) - except IOError, ValueError: + except (IOError, ValueError): # Something went wrong loading it (bad pickle, # probably). Start afresh. if options["globals", "verbose"]: