aiteamutils 0.2.39__tar.gz → 0.2.40__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiteamutils
3
- Version: 0.2.39
3
+ Version: 0.2.40
4
4
  Summary: AI Team Utilities
5
5
  Project-URL: Homepage, https://github.com/yourusername/aiteamutils
6
6
  Project-URL: Issues, https://github.com/yourusername/aiteamutils/issues
@@ -99,35 +99,15 @@ def get_service(name: str):
99
99
  """
100
100
  def _get_service(db_service: DatabaseService = Depends(get_database_service)):
101
101
  try:
102
- # 서비스 레지스트리에서 클래스 조회
103
- try:
104
- repository_class, service_class = service_registry.get(name)
105
- except CustomException as e:
106
- raise CustomException(
107
- ErrorCode.SERVICE_NOT_REGISTERED,
108
- detail=f"Service '{name}' is not registered",
109
- source_function="dependencies.get_service",
110
- original_error=e
111
- )
112
-
113
- # 서비스 인스턴스 생성
114
- try:
115
- repository = repository_class(db_service)
116
- return service_class(repository)
117
- except Exception as e:
118
- raise CustomException(
119
- ErrorCode.INTERNAL_ERROR,
120
- detail=f"Failed to create service instance for '{name}': {str(e)}",
121
- source_function="dependencies.get_service",
122
- original_error=e
123
- )
124
-
102
+ repository_class, service_class = service_registry.get(name)
103
+ repository = repository_class(db_service)
104
+ return service_class(repository, db_service)
125
105
  except CustomException as e:
126
106
  raise e
127
107
  except Exception as e:
128
108
  raise CustomException(
129
109
  ErrorCode.INTERNAL_ERROR,
130
- detail=f"Unexpected error while creating service '{name}': {str(e)}",
110
+ detail=f"Failed to create service '{name}': {str(e)}",
131
111
  source_function="dependencies.get_service",
132
112
  original_error=e
133
113
  )
@@ -0,0 +1,2 @@
1
+ """버전 정보"""
2
+ __version__ = "0.2.40"
@@ -1,2 +0,0 @@
1
- """버전 정보"""
2
- __version__ = "0.2.39"
File without changes
File without changes
File without changes
File without changes
File without changes