Skip to content

Commit 20f5098

Browse files
committed
catch the proper exception
1 parent d75f603 commit 20f5098

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ompackagemanager/updateinfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def main():
291291
fout.write(requests.get(sha, allow_redirects=True).content)
292292
with zipfile.ZipFile(zipfilepath, 'r') as zip_ref:
293293
zip_ref.extractall(repopath)
294-
except:
294+
except zipfile.BadZipfile:
295295
print("Failed to download or extract zip file from URL: %s" % zipfilepath)
296296
raise
297297
else:

0 commit comments

Comments
 (0)