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

Check if the image actually exists in the ImageMediaAdapter #130

Merged
merged 1 commit into from
Jul 10, 2023

Conversation

Prokyonn
Copy link
Member

This PR adds a check if the image really exists, if it doesn't exist anymore it will be redownloaded from sylius again.


// same image, not necessary to update anything
return $media;
} catch (\Exception $e) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Prokyonn is there a specific exception class?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the LocalStorage it's just an ErrorException, but I don't know what exception other adapters throw

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK then its ok

@wachterjohannes wachterjohannes merged commit 4b51f72 into sulu:0.x Jul 10, 2023
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants