Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ContentFile without a name breaks easy_thumbnails #599

Open
SachaMPS opened this issue Apr 7, 2022 · 0 comments
Open

ContentFile without a name breaks easy_thumbnails #599

SachaMPS opened this issue Apr 7, 2022 · 0 comments

Comments

@SachaMPS
Copy link

SachaMPS commented Apr 7, 2022

Hi there,

we had the issue that easy_thumbnail raised a 500 error (expected str, bytes or os.PathLike object, not NoneType) because our custom adapter to a cloud storage just returned a ContentFile without a name. We corrected this for ourselves by setting the name to ContentFile. Nevertheless it might be of interest to check if a name is set in eady_thumbnails at the following line of code:

if os.path.splitext(file.file.name)[1] == '.svg':

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant