Skip to content

fix: replace bare except with except Exception#5

Open
Jah-yee wants to merge 1 commit intomainfrom
fix/bare-except-to-exception
Open

fix: replace bare except with except Exception#5
Jah-yee wants to merge 1 commit intomainfrom
fix/bare-except-to-exception

Conversation

@Jah-yee
Copy link
Copy Markdown
Owner

@Jah-yee Jah-yee commented Apr 2, 2026

Good day,

I found and fixed issue EverMind-AI#98 - replacing bare except: with except Exception:.

Changes Made

Four files modified:

  • src/biz_layer/mem_db_operations.py: line 146
  • src/infra_layer/adapters/out/search/repository/episodic_memory_milvus_repository.py: line 127
  • tests/test_conv_memcell_extractor.py: line 40
  • tests/test_group_user_profile_memory_raw_repository.py: line 531

Why

Bare except: catches BaseException including KeyboardInterrupt and SystemExit. Using except Exception: preserves the fallback error-handling behavior while allowing system exceptions to propagate.

Reference: Issue EverMind-AI#98

Local Testing

  • Syntax check: ✅ passed (python3 -m py_compile)
  • Branch: fix/bare-except-to-exception

感谢你们的奉献,希望能提供帮助。如果我解决得有问题或有待商妥的地方,请在下面留言,我会来处理。

Warmly,

- src/biz_layer/mem_db_operations.py: line 146
- src/infra_layer/adapters/out/search/repository/episodic_memory_milvus_repository.py: line 127
- tests/test_conv_memcell_extractor.py: line 40
- tests/test_group_user_profile_memory_raw_repository.py: line 531

Bare except: catches BaseException including KeyboardInterrupt and SystemExit.
Using except Exception: preserves fallback behavior while allowing system
exceptions to propagate.

Ref: Issue EverMind-AI#98
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