Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/biz_layer/mem_db_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def _convert_timestamp_to_time(
try:
dt = from_iso_format(timestamp)
return to_iso_format(dt)
except:
except Exception:
# If parsing fails, return string directly
return timestamp
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ async def create_and_save_episodic_memory(
metadata_json = metadata
try:
metadata_dict = json.loads(metadata)
except:
except Exception:
metadata_dict = {}

# Prepare entity data
Expand Down
2 changes: 1 addition & 1 deletion tests/test_conv_memcell_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def get_llm_provider() -> LLMProvider:
try:
# Try to get from DI container
return get_bean_by_type(LLMProvider)
except:
except Exception:
# If not found in DI container, create directly
logger.info("LLMProvider not found in DI container, creating directly...")
return LLMProvider("openai")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_group_user_profile_memory_raw_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ async def test_batch_get_by_user_groups():
for user_id, group_id, _ in test_data:
try:
await repo.delete_by_user_group(user_id, group_id)
except:
except Exception:
pass
raise

Expand Down