Skip to content

fix: replace bare except with except Exception#107

Open
Jah-yee wants to merge 4 commits intoEverMind-AI:mainfrom
Jah-yee:main
Open

fix: replace bare except with except Exception#107
Jah-yee wants to merge 4 commits intoEverMind-AI:mainfrom
Jah-yee:main

Conversation

@Jah-yee
Copy link

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

Summary

Replace bare except: with except Exception: in two files.

Changes

  • src/biz_layer/mem_db_operations.py line 146
  • src/infra_layer/adapters/out/search/repository/episodic_memory_milvus_repository.py line 127

Why

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

Fixes #98

Jah-yee added 4 commits March 2, 2026 23:54
- src/biz_layer/mem_db_operations.py line 146
- src/infra_layer/.../episodic_memory_milvus_repository.py line 127

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

Fixes EverMind-AI#98
In simple_memory_manager.py search() method docstring,
the "rrf" retrieval mode was listed twice.

Removed the first occurrence as the second is more descriptive.

Fixes EverMind-AI#97
The ./docker/mongodb/init:/docker-entrypoint-initdb.d volume mount
in docker-compose.yaml references a directory that never existed.

MongoDB initialization is handled at the application layer (Beanie ODM
+ migration manager), not via Docker init scripts.

Fixes EverMind-AI#90
Issue EverMind-AI#48: Inconsistent timestamp formats in episodic memories

Changes:
- Updated EPISODE_GENERATION_PROMPT to enforce strict ISO 8601 format
- Examples of correct format: 2026-01-23T02:19:25Z or 2026-01-23T10:07:00+08:00
- Explicitly prohibits Chinese characters, weekdays, and partial times

This ensures consistent timestamp parsing, sorting, and filtering in downstream operations.
Jah-yee added a commit to Jah-yee/EverMemOS that referenced this pull request Mar 3, 2026
…e docstring

- Replace bare 'except:' with 'except Exception:' in:
  - src/biz_layer/mem_db_operations.py (line 146)
  - src/infra_layer/adapters/out/search/repository/episodic_memory_milvus_repository.py (line 127)

- Enforce ISO 8601 timestamp format in episodic memory prompts:
  - Add strict format requirements: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM
  - Update examples to use ISO 8601 format
  - Prevents inconsistent timestamp formats (Chinese chars, weekdays, AM/PM, UTC)

- Remove duplicate 'rrf' entry in demo/utils/simple_memory_manager.py docstring

Fixes EverMind-AI#107, EverMind-AI#97, EverMind-AI#108 (related to EverMind-AI#48)
Jah-yee added a commit to Jah-yee/EverMemOS that referenced this pull request Mar 3, 2026
… issues

- Fix EverMind-AI#50: Remove duplicate 'rrf' entry in demo docstring
- Fix EverMind-AI#107: Replace bare except with except Exception in mem_db_operations.py
- Fix EverMind-AI#107: Replace bare except with except Exception in episodic_memory_milvus_repository.py
- Fix EverMind-AI#48: Add ISO 8601 timestamp format requirement to episode_mem_prompts.py

All modified files pass Python syntax validation.
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