Skip to content

Fix impossible condition in chooseResume method#109

Draft
cursor[bot] wants to merge 1 commit intomainfrom
cursor/daily-code-improvements-8ab6
Draft

Fix impossible condition in chooseResume method#109
cursor[bot] wants to merge 1 commit intomainfrom
cursor/daily-code-improvements-8ab6

Conversation

@cursor
Copy link
Copy Markdown
Contributor

@cursor cursor bot commented Apr 8, 2026

Issue: The condition type(len(resumes)) != int on line 311 of linkedin.py is always False since len() always returns an int in Python. This prevented the error message about missing resumes from ever being displayed.

Fix: Replace the impossible condition with len(resumes) == 0 to properly detect when no PDF resumes are found and display the appropriate error message to users.

Impact: Improves error handling and user feedback when resume selection fails.

Open in Web View Automation 

Replace 'type(len(resumes)) != int' with 'len(resumes) == 0' to enable
proper error messaging when no PDF resumes are found. The original
condition was always False since len() always returns an int.

Co-authored-by: Ongun Demirag <ongun@ongundemirag.com>
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.

1 participant