fixed bug in get_engine_status() function

This commit is contained in:
Pablo Hoffman 2011-06-20 11:09:01 -03:00
parent 03a92a8b03
commit 03bc218987
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ def get_engine_status(engine=None):
status['global'][test] = eval(test)
except Exception, e:
status['global'][test] = "%s (exception)" % type(e).__name__
for spider in engine.downloader.sites + engine.scraper.sites:
for spider in set(engine.downloader.sites.keys() + engine.scraper.sites.keys()):
x = {}
for test in spider_tests:
try: