Scrapy, a fast high-level web crawling & scraping framework for Python.
fix except syntax
samus_2f60224b9196
diff --git a/scrapy/trunk/scrapy/contrib/pbcluster/worker/manager.py b/scrapy/trunk/scrapy/contrib/pbcluster/worker/manager.pyindex cb4940a0f..d95a0c2cc 100644--- a/scrapy/trunk/scrapy/contrib/pbcluster/worker/manager.py+++ b/scrapy/trunk/scrapy/contrib/pbcluster/worker/manager.py@@ -46,7 +46,7 @@ class ScrapyProcessProtocol(protocol.ProcessProtocol):f_out.writelines(f_in)os.remove(self.logfile)self.logfile = "%s.gz" % self.logfile- except e:+ except Exception as e:log.msg("failed to compress %s exception=%s (domain=%s, pid=%s)" % (self.logfile, e, self.domain, self.pid))log.msg("ClusterWorker: finished domain=%s, pid=%d, log=%s" % (self.domain, self.pid, self.logfile))log.msg("Reason type: %s. value: %s" % (reason.type, reason.value) )