Skip to content

Solution for issue 535#538

Open
erikmf123 wants to merge 2 commits intomainfrom
erikNewsRouter
Open

Solution for issue 535#538
erikmf123 wants to merge 2 commits intomainfrom
erikNewsRouter

Conversation

@erikmf123
Copy link
Copy Markdown
Contributor

Solved this issue #535

Changed from:
dest_path.write_bytes(image.file.read())
news.image_exist = True

To:
news.image_exist = True

try:
dest_path.write_bytes(image.file.read())
except:
news.image_exist = False
db.commit()

@georgelgeback georgelgeback self-requested a review May 10, 2026 14:16
@georgelgeback georgelgeback linked an issue May 10, 2026 that may be closed by this pull request
@georgelgeback
Copy link
Copy Markdown
Contributor

You probably created your branch off the old one which added image_exist, so your PR is out of sync with main. Run git fetch, then git merge origin/main and then fix the merge conflicts. (Or use the GUI). You can ask duckduckgo or a su-perman for help with how to fix merge conflicts.

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.

Fix potential image_exist bool desync with reality

2 participants