Skip to content

fix: narrow exception in agent integration lookup from Exception to specific types - #3915

Open
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/agents-narrow-exception-v2
Open

fix: narrow exception in agent integration lookup from Exception to specific types#3915
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/agents-narrow-exception-v2

Conversation

@Quratulain-bilal

Copy link
Copy Markdown
Contributor

Problem

Bare except Exception silently swallows all errors including MemoryError, RecursionError, etc.

Fix

Narrow to (ImportError, KeyError, ValueError) which are the realistic failure modes.

Testing

  • Verified normal agent integration lookup works
  • Verified fallback separator is used when integration is not found

…pecific types

Bare 'except Exception' silently swallows all errors including
MemoryError, RecursionError, etc. Narrow to (ImportError, KeyError,
ValueError) which are the realistic failure modes.
@Quratulain-bilal
Quratulain-bilal requested a review from mnriem as a code owner July 31, 2026 14:44
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