aiteamutils 0.2.143__tar.gz → 0.2.144__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiteamutils
3
- Version: 0.2.143
3
+ Version: 0.2.144
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
@@ -170,7 +170,7 @@ class BaseService(Generic[ModelType]):
170
170
  await FileHandler.delete_files(file_info["storage_path"])
171
171
  raise CustomException(
172
172
  ErrorCode.FILE_SYSTEM_ERROR,
173
- detail=str(e),
173
+ detail=f"File processing error: {str(e)}",
174
174
  source_function=f"{self.__class__.__name__}._process_files",
175
175
  original_error=e
176
176
  )
@@ -248,14 +248,27 @@ class BaseService(Generic[ModelType]):
248
248
  return result
249
249
 
250
250
  except CustomException as e:
251
- raise e
252
- except Exception as e:
253
251
  raise CustomException(
254
- ErrorCode.INTERNAL_ERROR,
255
- detail=str(e),
256
- source_function=f"base_service.{self.__class__.__name__}.create.exception",
252
+ e.error_code,
253
+ detail=f"{e.detail}|{str(e)}",
254
+ source_function=f"base_service.{self.__class__.__name__}.create",
257
255
  original_error=e
258
256
  )
257
+ except Exception as e:
258
+ if isinstance(e, str) and "FILE_SYSTEM_ERROR" in str(e):
259
+ raise CustomException(
260
+ ErrorCode.FILE_SYSTEM_ERROR,
261
+ detail=f"{str(e)}",
262
+ source_function=f"base_service.{self.__class__.__name__}.create",
263
+ original_error=e
264
+ )
265
+ else:
266
+ raise CustomException(
267
+ ErrorCode.INTERNAL_ERROR,
268
+ detail=f"{str(e)}",
269
+ source_function=f"base_service.{self.__class__.__name__}.create",
270
+ original_error=e
271
+ )
259
272
 
260
273
  async def update(
261
274
  self,
@@ -0,0 +1,2 @@
1
+ """버전 정보"""
2
+ __version__ = "0.2.144"
@@ -1,2 +0,0 @@
1
- """버전 정보"""
2
- __version__ = "0.2.143"
File without changes
File without changes
File without changes