Replace deprecated BadZipfile with BadZipFile (#5849)

This commit is contained in:
Hugo van Kemenade 2023-03-13 20:03:41 +02:00 committed by GitHub
parent afafc2781a
commit 9411cf4e70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()