diff --git a/src/backend/InvenTree/InvenTree/serializers.py b/src/backend/InvenTree/InvenTree/serializers.py index 4063685115..e79b5bd7a1 100644 --- a/src/backend/InvenTree/InvenTree/serializers.py +++ b/src/backend/InvenTree/InvenTree/serializers.py @@ -882,8 +882,8 @@ class RemoteImageMixin(metaclass=serializers.SerializerMetaclass): try: self.remote_image_file = download_image_from_url(url) - except Exception as exc: + except Exception: self.remote_image_file = None - raise ValidationError(str(exc)) + raise ValidationError(_('Failed to download image from remote URL')) return url