Skip to content
This repository was archived by the owner on May 19, 2024. It is now read-only.
This repository was archived by the owner on May 19, 2024. It is now read-only.

DrawingWrapper fails when url is not founded #20

@koninka

Description

@koninka

I use your bundle with DrawingWrapper tag to export products and their pictures (they are on the CDN). When the url of the picture is invalid, The following exception is thrown:

An exception has been thrown during the rendering of a template ("Warning: file_get_contents(https://gd3.alicdn.com/imgextra/i1/1741453808/TB20GGrIXmWBuNjSspdXXbugXXa_!!1741453808.jpg): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found ").

This is causes because the url is not founded.
It may be a good idea to ignore URLs (keep blank cell) that could not save data or make it manageable (for example, passing a flag to throw or not throw an error)? Because now I have to pre-test the url for validity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions