Commit 6d09dee
committed
Ensure that the cached file is not empty before using it
We've observed multiple cases where a zero-byte file is cached, leading
to crashes with the error message:
zipfile.BadZipFile: File is not a zip file
I was not able to reproduce this issue reliably enough to identify the
root cause. However, adding a check to ensure that the cached file is
not empty before using it will mitigate the problem.
Signed-off-by: Marcel Bochtler <[email protected]>1 parent dcd3609 commit 6d09dee
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1694 | 1694 | | |
1695 | 1695 | | |
1696 | 1696 | | |
1697 | | - | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
1698 | 1705 | | |
1699 | 1706 | | |
1700 | 1707 | | |
| |||
0 commit comments