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
When developing locally without the media files available, I keep getting FileNotFoundError printed to the console. I'm calling sorl.thumbnail.get_thumbnail directly (i.e, without using the templatetags.
backend_1 | File "/opt/venv/lib/python3.9/site-packages/sorl/thumbnail/base.py", line 104, in get_thumbnail
backend_1 | source_image = default.engine.get_image(source)
backend_1 | File "/opt/venv/lib/python3.9/site-packages/sorl/thumbnail/engines/pil_engine.py", line 72, in get_image
backend_1 | buffer = BytesIO(source.read())
backend_1 | File "/opt/venv/lib/python3.9/site-packages/sorl/thumbnail/images.py", line 162, in read
backend_1 | f = self.storage.open(self.name)
backend_1 | File "/opt/venv/lib/python3.9/site-packages/django/core/files/storage.py", line 38, in open
backend_1 | return self._open(name, mode)
backend_1 | File "/opt/venv/lib/python3.9/site-packages/django/core/files/storage.py", line 243, in _open
backend_1 | return File(open(self.path(name), mode))
backend_1 | FileNotFoundError: [Errno 2] No such file or directory: '/workspace/media/posts/image-72.png'
I tried to use the DUMMY config, but the error continue.
I believe that before when I was on django==2.2.2 and sorl-thumbnail==12.5.0 this error was getting suppressed somehow.
Using:
'sorl.thumbnail': {
'handlers': ['null'],
},
Works, but I don't want to suppress every sorl-thumbnail error.
Hi,
When developing locally without the media files available, I keep getting
FileNotFoundError
printed to the console. I'm callingsorl.thumbnail.get_thumbnail
directly (i.e, without using the templatetags.I tried to use the DUMMY config, but the error continue.
I believe that before when I was on
django==2.2.2
andsorl-thumbnail==12.5.0
this error was getting suppressed somehow.Using:
Works, but I don't want to suppress every
sorl-thumbnail
error.Looking at https://github.com/jazzband/sorl-thumbnail/blob/master/sorl/thumbnail/base.py#L106, and comparing with the
12.5.0
version, I couldn't find any difference, so it must be a new Django default that I'm missing.Does anyone have any ideas here? Thanks!
The text was updated successfully, but these errors were encountered: