mirror of
https://github.com/langchain-ai/open_deep_research.git
synced 2026-07-25 21:35:34 -04:00
[PR #246] fix(legacy): replace bare except with except Exception in utils #245
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langchain-ai/open_deep_research/pull/246
Author: @llukito
Created: 2/15/2026
Status: 🔄 Open
Base:
main← Head:fix/bare-except-legacy-utils📝 Commits (1)
5a94d27fix(legacy): replace bare except with except Exception in utils📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
src/legacy/utils.py(+2 -2)📄 Description
Description
Replaced a bare
except:clause withexcept Exception as e:insrc/legacy/utils.py.Why this matters:
Even in legacy code, bare excepts are problematic as they catch
BaseExceptiontypes likeKeyboardInterruptandSystemExit. This change ensures that users can still terminate long-running processes (like Deep Research agents) via standard signals likeCtrl+C, while maintaining the existing fallback logic for standard errors.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.