Improve error logging when failing to create a spider in the execution queue

This commit is contained in:
Pablo Hoffman 2010-09-07 10:07:47 -03:00
parent 9158e9d682
commit d0081290f2
1 changed files with 3 additions and 0 deletions

View File

@ -86,5 +86,8 @@ class ExecutionQueue(object):
spider = self._spiders.create(name, **spider_kwargs)
except KeyError:
log.msg('Unable to find spider: %s' % name, log.ERROR)
except:
log.err(None, 'Error creating spider %r with arguments: %r' % \
(name, spider_kwargs))
else:
self.append_spider(spider)