Skip empty crx files.

This commit is contained in:
Michael Herzberg 2019-02-27 22:33:32 +00:00
parent c230e7ef96
commit c827219a40
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ def handle_extid(conf, extid, csvwriter):
if tarentry_filename == "overview.html.status":
still_in_store = tarfile.read().decode().startswith("2")
if tarentry_filename.endswith(".crx"):
if tarentry_filename.endswith(".crx") and tarentry.size > 0:
with ZipFile(tarfile) as zf:
for zipentry in zf.infolist():
if zipentry.filename.endswith(".js"):