Skip to content

fix: replace 4 bare excepts with except Exception#91

Open
haosenwang1018 wants to merge 1 commit intoEverMind-AI:mainfrom
haosenwang1018:fix/bare-excepts
Open

fix: replace 4 bare excepts with except Exception#91
haosenwang1018 wants to merge 1 commit intoEverMind-AI:mainfrom
haosenwang1018:fix/bare-excepts

Conversation

@haosenwang1018
Copy link

Replace bare except: with except Exception: across 4 files.

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

Files: mem_db_operations.py, episodic_memory_milvus_repository.py, test_conv_memcell_extractor.py, test_group_user_profile_memory_raw_repository.py

Bare `except:` catches BaseException including KeyboardInterrupt and
SystemExit. Replaced 4 instances with `except Exception:`.
Jah-yee pushed a commit to Jah-yee/EverMemOS that referenced this pull request Mar 10, 2026
… replace bare except

- Rename stage3_memory_retrivel.py to stage3_memory_retrieval.py (typo fix)
- Replace == None with is None in mem_memorize.py and test files
- Replace != True with is not True in repository files
- Replace bare except with except Exception in production and test files

Fixes EverMind-AI#115 EverMind-AI#113 EverMind-AI#107 EverMind-AI#91 EverMind-AI#98
Jah-yee pushed a commit to Jah-yee/EverMemOS that referenced this pull request Mar 12, 2026
- Rename stage3_memory_retrivel.py to stage3_memory_retrieval.py (typo fix)
- Replace == None with is None (Python anti-pattern)
- Replace != True with is not True (Python anti-pattern)
- Replace bare except with except Exception
- Remove duplicate 'rrf' entry in docstring
- Remove unused MongoDB init script volume mount from docker-compose.yaml
- Add missing env template setup step in STARTER_KIT.md quick start

Fixes: EverMind-AI#115, EverMind-AI#113, EverMind-AI#107, EverMind-AI#97, EverMind-AI#91, EverMind-AI#90, EverMind-AI#86
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