Stop logobserver only when set

This commit is contained in:
Daniel Graña 2014-09-10 12:09:07 -03:00
parent ec93c0fdcc
commit a823207f18
2 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,8 @@ class CrawlerProcess(CrawlerRunner):
reactor.run(installSignalHandlers=False) # blocking call
def _stop_logging(self):
self.log_observer.stop()
if self.log_observer:
self.log_observer.stop()
def _stop_reactor(self, _=None):
try:

View File

@ -25,7 +25,6 @@ deps =
lxml==2.3.2
Twisted==11.1.0
boto==2.2.2
Pillow<2.0
django==1.3.1
cssselect==0.9.1
zope.interface==3.6.1