Skip to content

fix: convert exception to string before colored() in search.py - #40

Merged
Troptrap merged 2 commits into
Troptrap:mainfrom
AmSach:fix/api-index-out-of-bounds
May 6, 2026
Merged

fix: convert exception to string before colored() in search.py#40
Troptrap merged 2 commits into
Troptrap:mainfrom
AmSach:fix/api-index-out-of-bounds

Conversation

@AmSach

@AmSach AmSach commented May 5, 2026

Copy link
Copy Markdown
Contributor

Fixed a bug where the exception object was being passed directly to the colored() function without converting it to a string first. This would cause a TypeError when the exception is not a string type. Changed print(colored(e, "red")) to print(colored(str(e), "red")).

@Troptrap
Troptrap merged commit a244a0d into Troptrap:main May 6, 2026
1 check passed
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