2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 11:36:44 +00:00

Merge commit from fork (#8229)

* Sanitize markdown when rendering notes fields

* Revert "Sanitize markdown when rendering notes fields"

This reverts commit 373ebfbef0ce25fa58cb4e635e99f35b5e4df07c.

* Mask error message when downloading image
This commit is contained in:
Oliver 2024-10-02 14:28:13 +10:00 committed by GitHub
parent 524e6ddf79
commit 86111ad9b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -882,8 +882,8 @@ class RemoteImageMixin(metaclass=serializers.SerializerMetaclass):
try: try:
self.remote_image_file = download_image_from_url(url) self.remote_image_file = download_image_from_url(url)
except Exception as exc: except Exception:
self.remote_image_file = None self.remote_image_file = None
raise ValidationError(str(exc)) raise ValidationError(_('Failed to download image from remote URL'))
return url return url