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 file exists on disk before calling identify #1327

Merged
merged 1 commit into from
Nov 24, 2017

Conversation

chalmagean
Copy link
Contributor

If the file is not on disk, identify can't be called so we need to check
for a file first.

Calling image_file.file will throw an exception if the file doesn't
exist so it will be catched by the rescue.

This fixes issue the issue describe here #1326 (comment)

If the file is not on disk, identify can't be called so we need to check
for a file first.

Calling `image_file.file` will throw an exception if the file doesn't
exist so it will be catched by the rescue.
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

LGTM

@tvdeyen tvdeyen merged commit 814e75a into AlchemyCMS:master Nov 24, 2017
@tvdeyen
Copy link
Member

tvdeyen commented Nov 24, 2017

Thanks!

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