Skip to content

Conversation

@tharun-0525
Copy link

@tharun-0525 tharun-0525 commented Oct 30, 2025

  • Added an explicit except UnicodeDecodeError block in get_response to prevent crashes when requests encounter improperly encoded URLs.
  • Used urllib.parse.quote to safely encode usernames (e.g., with accents like 'Émile') to ASCII before constructing request URLs. This ensures that searches for usernames with special characters complete successfully.

This is my first commit, would love to hear some suggestions.

Fix: #2730

@tharun-0525 tharun-0525 marked this pull request as ready for review October 30, 2025 15:38
@tharun-0525 tharun-0525 changed the title Fix #2730: Prevent UnicodeDecodeError for usernames with accents Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant