mirror of https://github.com/scrapy/scrapy.git
fix except syntax
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40921
This commit is contained in:
parent
4675404fc1
commit
2f60224b91
|
|
@ -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) )
|
||||
|
|
|
|||
Loading…
Reference in New Issue