Skip to content

sync with main repository 3/13#1

Closed
gregnazario wants to merge 4 commits into
mainfrom
update-sdk
Closed

sync with main repository 3/13#1
gregnazario wants to merge 4 commits into
mainfrom
update-sdk

Conversation

@gregnazario
Copy link
Copy Markdown
Contributor

No description provided.

@davidiw davidiw closed this Apr 13, 2024
cursor Bot pushed a commit that referenced this pull request May 15, 2026
Per Copilot review on PR #106: catching bare Exception was too broad and
swallowed programmer bugs (TypeError, AttributeError) into IndexerError,
making them harder to debug. Restrict to the actual transport / decode
errors that motivated the wrapper:

  * aiohttp.ClientError (network + ContentTypeError on rate-limit HTML)
  * asyncio.TimeoutError
  * json.JSONDecodeError
  * UnicodeDecodeError

Other exceptions propagate unchanged. Add a regression test that asserts
TypeError is *not* converted to IndexerError.

Co-authored-by: Greg Nazario <greg@gnazar.io>
gregnazario added a commit that referenced this pull request May 20, 2026
Per Copilot review on PR #106: catching bare Exception was too broad and
swallowed programmer bugs (TypeError, AttributeError) into IndexerError,
making them harder to debug. Restrict to the actual transport / decode
errors that motivated the wrapper:

  * aiohttp.ClientError (network + ContentTypeError on rate-limit HTML)
  * asyncio.TimeoutError
  * json.JSONDecodeError
  * UnicodeDecodeError

Other exceptions propagate unchanged. Add a regression test that asserts
TypeError is *not* converted to IndexerError.

Co-authored-by: Greg Nazario <greg@gnazar.io>
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