mirror of https://github.com/scrapy/scrapy.git
periodic_log: TypeError except added
This commit is contained in:
parent
b60e0faf22
commit
639c2bcc47
|
|
@ -45,6 +45,12 @@ class PeriodicLog:
|
|||
if crawler.settings.getbool("PERIODIC_LOG_STATS")
|
||||
else None
|
||||
)
|
||||
except TypeError:
|
||||
ext_stats = (
|
||||
{"enabled": True}
|
||||
if crawler.settings.getbool("PERIODIC_LOG_STATS")
|
||||
else None
|
||||
)
|
||||
|
||||
try:
|
||||
ext_delta = crawler.settings.getdict("PERIODIC_LOG_DELTA")
|
||||
|
|
@ -54,6 +60,13 @@ class PeriodicLog:
|
|||
if crawler.settings.getdict("PERIODIC_LOG_DELTA")
|
||||
else None
|
||||
)
|
||||
except TypeError:
|
||||
ext_stats = (
|
||||
{"enabled": True}
|
||||
if crawler.settings.getbool("PERIODIC_LOG_DELTA")
|
||||
else None
|
||||
)
|
||||
|
||||
ext_timing_enabled = crawler.settings.getbool(
|
||||
"PERIODIC_LOG_TIMING_ENABLED", False
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue