Skip to content

fix(ddg): restore broad exception catch in search() - #74

Merged
nullhack merged 1 commit into
mainfrom
fix/ddg-exception-broaden
Jul 31, 2026
Merged

fix(ddg): restore broad exception catch in search()#74
nullhack merged 1 commit into
mainfrom
fix/ddg-exception-broaden

Conversation

@nullhack

Copy link
Copy Markdown
Owner

PR #66 narrowed except Exception to (KeyError, ValueError, TypeError, AttributeError) — but httpx network errors (ReadTimeout, ConnectError, RemoteProtocolError) are not subclasses of those. Network errors during DDG searches propagated up and crashed the entire search-news CI step (4 failures in last 4 days). This is a system boundary: any search failure should return [], not crash the pipeline.

…ne crashes

PR #66 narrowed except Exception to (KeyError, ValueError, TypeError,
AttributeError) — but httpx network errors (ReadTimeout, ConnectError,
RemoteProtocolError) are not subclasses of those. Network errors during
DDG searches propagated up and crashed the entire search-news CI step.
This is a system boundary: any search failure should return [], not crash.
@nullhack
nullhack merged commit a407b6c into main Jul 31, 2026
1 check passed
@nullhack
nullhack deleted the fix/ddg-exception-broaden branch July 31, 2026 15:55
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