Skip to content

Commit 82b8a5c

Browse files
further-readingVMRuiz
authored andcommitted
Adding use of ItemAdapter to prevent assumptions of item nature
#353
1 parent ea0ef1a commit 82b8a5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spidermon/contrib/scrapy/extensions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def _count_item(self, item, skip_none_values, item_count_stat=None):
139139
self.crawler.stats.inc_value(item_count_stat)
140140

141141
data = ItemAdapter(item)
142-
for field_name, value in data.asdict().items():
142+
for field_name, value in data.items():
143143
if skip_none_values and value is None:
144144
continue
145145

0 commit comments

Comments
 (0)