aiteamutils 0.2.143__py3-none-any.whl → 0.2.144__py3-none-any.whl
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.
aiteamutils/base_service.py
CHANGED
@@ -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
|
-
|
255
|
-
detail=str(e),
|
256
|
-
source_function=f"base_service.{self.__class__.__name__}.create
|
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,
|
aiteamutils/version.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
"""버전 정보"""
|
2
|
-
__version__ = "0.2.
|
2
|
+
__version__ = "0.2.144"
|
@@ -1,7 +1,7 @@
|
|
1
1
|
aiteamutils/__init__.py,sha256=kRBpRjark0M8ZwFfmKiMFol6CbIILN3WE4f6_P6iIq0,1089
|
2
2
|
aiteamutils/base_model.py,sha256=yBZqzTDF9PA4wCAvmYfG12FdVwLtxOEUCcA3z2i6fXU,4176
|
3
3
|
aiteamutils/base_repository.py,sha256=Oy2zE1i5qx60Xf1tnsaKLyFWapiPqt5JH8NejwNrPWg,4647
|
4
|
-
aiteamutils/base_service.py,sha256=
|
4
|
+
aiteamutils/base_service.py,sha256=Q80ojzdOEBT2EwIvh83w-34bmoJrQhQEZSLgHZ5VZhs,20725
|
5
5
|
aiteamutils/cache.py,sha256=07xBGlgAwOTAdY5mnMOQJ5EBxVwe8glVD7DkGEkxCtw,1373
|
6
6
|
aiteamutils/config.py,sha256=YdalpJb70-txhGJAS4aaKglEZAFVWgfzw5BXSWpkUz4,3232
|
7
7
|
aiteamutils/database.py,sha256=msvBKtxWeQVOo0v2Q9i2azuTNtnUItuNNar52gdRZTo,20418
|
@@ -10,7 +10,7 @@ aiteamutils/exceptions.py,sha256=pgf3ersezObyl17wAO3I2fb8m9t2OzWDX1mSjwAWm2Y,160
|
|
10
10
|
aiteamutils/files.py,sha256=1XuLAvsQbnURHSZ2IyZIXrZH6OWgnC5Tl1vcTDyi1GY,9017
|
11
11
|
aiteamutils/security.py,sha256=McUl3t5Z5SyUDVUHymHdDkYyF4YSeg4g9fFMML4W6Kw,11630
|
12
12
|
aiteamutils/validators.py,sha256=_WHN6jqJQzKM5uPTg-Da8U2qqevS84XeKMkCCF4C_lY,9591
|
13
|
-
aiteamutils/version.py,sha256=
|
14
|
-
aiteamutils-0.2.
|
15
|
-
aiteamutils-0.2.
|
16
|
-
aiteamutils-0.2.
|
13
|
+
aiteamutils/version.py,sha256=ABHmb_QXO44fuZdnlGt_GXa9dIXPlE7GFyR_F1eCXBY,43
|
14
|
+
aiteamutils-0.2.144.dist-info/METADATA,sha256=AlNST7gAdkpc_zugXaX2rr0O-4h9LFIwf2plP5Fm4hQ,1743
|
15
|
+
aiteamutils-0.2.144.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
16
|
+
aiteamutils-0.2.144.dist-info/RECORD,,
|
File without changes
|