1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-25 21:03:40 +00:00

fixed bug in MEMUSAGE_NOTIFY_MAIL setting

This commit is contained in:
Pablo Hoffman 2011-11-08 11:51:26 -02:00
parent 37ad4f8791
commit 6cc40dc062

View File

@ -28,7 +28,7 @@ class MemoryUsage(object):
self.crawler = crawler
self.warned = False
self.notify_mails = crawler.settings.getlist('MEMUSAGE_NOTIFY')
self.notify_mails = crawler.settings.getlist('MEMUSAGE_NOTIFY_MAIL')
self.limit = crawler.settings.getint('MEMUSAGE_LIMIT_MB')*1024*1024
self.warning = crawler.settings.getint('MEMUSAGE_WARNING_MB')*1024*1024
self.report = crawler.settings.getbool('MEMUSAGE_REPORT')