internal 0.1.76__py3-none-any.whl → 0.1.77__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.

Potentially problematic release.


This version of internal might be problematic. Click here for more details.

internal/base_factory.py CHANGED
@@ -93,7 +93,10 @@ class BaseFactory(metaclass=ABCMeta):
93
93
 
94
94
  @app.exception_handler(RequestValidationError)
95
95
  async def validation_exception_handler(request: Request, exc: RequestValidationError):
96
- return await async_response(data={"detail": exc.errors(), "body": exc.body},
96
+ data = {"detail": exc.errors()}
97
+ if exc.body:
98
+ data["body"] = exc.body
99
+ return await async_response(data=data,
97
100
  code="error_unprocessable_entity", message="Validation failed",
98
101
  status_code=status.HTTP_422_UNPROCESSABLE_ENTITY)
99
102
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: internal
3
- Version: 0.1.76
3
+ Version: 0.1.77
4
4
  Summary:
5
5
  Author: Ray
6
6
  Author-email: ray@cruisys.com
@@ -1,6 +1,6 @@
1
1
  internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  internal/base_config.py,sha256=M2HMhJAerOHppSqy1O2J0tGrC5cTGmouf3Cyu0YfIXo,1020
3
- internal/base_factory.py,sha256=u0DBtOuYi3E1Phn6c0SiQBlCvxCLh0qn6DuANHB6rf0,6452
3
+ internal/base_factory.py,sha256=rYzkcoHcJxXn0dCWyVOBwH5LpAP0-IVAaOhUbdGY1WM,6523
4
4
  internal/common_enum/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  internal/common_enum/contact_type.py,sha256=uwZjxImXltMmfoAbe-1IeK3ry-p_wJ-wPPWR6NB7WXM,142
6
6
  internal/common_enum/operator_type.py,sha256=dkLgO3EX0jiU-gAj5985FKOs68xBYPX2BNZZ5Vyvk2Y,125
@@ -22,6 +22,6 @@ internal/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
22
  internal/model/base_model.py,sha256=svULVdROpcnmTyhIbZ7M6pn40vhb_qIZ5W2CEyuEWZE,3002
23
23
  internal/model/operate.py,sha256=luEoP_Asvso_11qz1SAE1Kn5KxAnDRptM0VylC5tNik,1493
24
24
  internal/utils.py,sha256=0SubS0iUhDvjSX1F4TykasA5-enYJzt2VH-f7_0BnjI,1509
25
- internal-0.1.76.dist-info/METADATA,sha256=LaWkmiVInuU7kEso55Cd0l-fG4sbc-Fwi70vMS0mzNg,625
26
- internal-0.1.76.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
27
- internal-0.1.76.dist-info/RECORD,,
25
+ internal-0.1.77.dist-info/METADATA,sha256=WekZ6tJQx_X7MlRn7tmdq13ayHZLyRrJ2wFzzPR0Clc,625
26
+ internal-0.1.77.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
27
+ internal-0.1.77.dist-info/RECORD,,