You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a file with over 1000 entries is previed with Invenio (in this case on Zenodo) the error message seems to be "Zipfile is not previewable" instead of "Zipfile is too large to preview" which I would expect.
The zip previewer seem to throw the wrong exception when a file with >1000 files is previewed. I would expect a zipfile.LargeZipFile to be thrown. But perhaps I am not understanding the code correctly.
If a file with over 1000 entries is previed with Invenio (in this case on Zenodo) the error message seems to be "Zipfile is not previewable" instead of "Zipfile is too large to preview" which I would expect.
The zip previewer seem to throw the wrong exception when a file with >1000 files is previewed. I would expect a zipfile.LargeZipFile to be thrown. But perhaps I am not understanding the code correctly.
invenio-previewer/invenio_previewer/extensions/zip.py
Line 41 in 10233a0
Example here: https://doi.org/10.5281/zenodo.3367497
The text was updated successfully, but these errors were encountered: