Skip to content

Conversation

@Chanceium
Copy link

Fixes #135

  • Initialize filepath to None before try block
  • Add null check before accessing filepath.exists() in except block
  • Prevents 500 error when Google Maps returns invalid image data
  • Application now fails gracefully, returning empty string instead of crashing

…mages

Fixes itskovacs#135

- Initialize filepath to None before try block
- Add null check before accessing filepath.exists() in except block
- Prevents 500 error when Google Maps returns invalid image data
- Application now fails gracefully, returning empty string instead of crashing
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.

[Bug]: UnboundLocalError in save_image_to_file when image processing fails

1 participant