mirror of https://github.com/scrapy/scrapy.git
Replace deprecated BadZipfile with BadZipFile (#5849)
This commit is contained in:
parent
afafc2781a
commit
9411cf4e70
|
|
@ -51,7 +51,7 @@ class DecompressionMiddleware:
|
|||
archive = BytesIO(response.body)
|
||||
try:
|
||||
zip_file = zipfile.ZipFile(archive)
|
||||
except zipfile.BadZipfile:
|
||||
except zipfile.BadZipFile:
|
||||
return
|
||||
|
||||
namelist = zip_file.namelist()
|
||||
|
|
|
|||
Loading…
Reference in New Issue