Commit 1f9517f
fix: replace bare except clauses with specific exception types
Bare `except:` clauses catch KeyboardInterrupt and SystemExit, which
prevents proper Celery worker shutdown and can cause processes to hang.
- `utils.py`: uuid.UUID() raises ValueError on invalid input, so catch
(ValueError, AttributeError) instead of bare except
- `base_tool_node.py`: json.loads() raises JSONDecodeError on invalid
JSON, so catch (json.JSONDecodeError, TypeError, ValueError) instead
Fixes #5065
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5bca299 commit 1f9517f
2 files changed
Lines changed: 2 additions & 2 deletions
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments