From b80a20c84c1943fcb50c84bae4785f6806095969 Mon Sep 17 00:00:00 2001 From: Andrey Rakhmatullin Date: Mon, 26 Aug 2024 19:16:41 +0500 Subject: [PATCH] Fix a typing error with Twisted 24.7.0. --- scrapy/pipelines/media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapy/pipelines/media.py b/scrapy/pipelines/media.py index 153047acf..a28e47d70 100644 --- a/scrapy/pipelines/media.py +++ b/scrapy/pipelines/media.py @@ -208,7 +208,7 @@ class MediaPipeline: # minimize cached information for failure result.cleanFailure() result.frames = [] - result.stack = None + result.stack = [] # This code fixes a memory leak by avoiding to keep references to # the Request and Response objects on the Media Pipeline cache.