fix except syntax

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40921
This commit is contained in:
samus_ 2009-02-25 06:33:08 +00:00
parent 4675404fc1
commit 2f60224b91
1 changed files with 1 additions and 1 deletions

View File

@ -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) )