starmallow 0.3.2__py3-none-any.whl → 0.3.3__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.
starmallow/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "0.3.2"
1
+ __version__ = "0.3.3"
2
2
 
3
3
  from .applications import StarMallow
4
4
  from .exceptions import RequestValidationError
@@ -135,10 +135,13 @@ class StarMallow(Starlette):
135
135
  ] = {}
136
136
 
137
137
  for key, value in self.exception_handlers.items():
138
+ # Ensure we handle any middleware exceptions using the Exception handler
139
+ # But also ensure we don't fall through all middlewares if the route itself threw an Exception
140
+ # As this would result in an incredibly long stacktrace
138
141
  if key in (500, Exception):
139
142
  error_handler = value
140
- else:
141
- exception_handlers[key] = value
143
+
144
+ exception_handlers[key] = value
142
145
 
143
146
  middleware = (
144
147
  [Middleware(ServerErrorMiddleware, handler=error_handler, debug=debug)]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: starmallow
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: StarMallow framework
5
5
  Project-URL: Homepage, https://github.com/mvanderlee/starmallow
6
6
  Author-email: Michiel Vanderlee <jmt.vanderlee@gmail.com>
@@ -1,5 +1,5 @@
1
- starmallow/__init__.py,sha256=qkXQzSrTLh_avxpsOZGsDfisIB1XVmnx8rUZXats__8,322
2
- starmallow/applications.py,sha256=aoaHg_MgmRqRdaM8MFzeqsHqXuOQDWk6G70UQbdm_Fk,29469
1
+ starmallow/__init__.py,sha256=-ln4p19cwSrpztpgmO3aEauXyq2lSCuXvZH4ece_AlA,322
2
+ starmallow/applications.py,sha256=oZxxLof82QdfK44-q6wUHq9z8_sRGSEVzSQkNvfGKIg,29708
3
3
  starmallow/concurrency.py,sha256=MVRjo4Vqss_yqhaoeVt3xb7rLaSuAq_q9uYgTwbsojE,1375
4
4
  starmallow/constants.py,sha256=u0h8cJKhJY0oIZqzr7wpEZG2bPLrw5FroMnn3d8KBNQ,129
5
5
  starmallow/dataclasses.py,sha256=ap9DInvQjH2AyI4MAAnbDEuNnbPb94PigaNmEb7AQU8,2658
@@ -33,7 +33,7 @@ starmallow/security/http.py,sha256=cpGjM1kFDq3i_bOY96kMkf4cspBUxFkkET9lTK3NA-0,6
33
33
  starmallow/security/oauth2.py,sha256=1nv1580PY4cwgu5gzpQCf2MfMNv2Cfv05753AUHPOhQ,10005
34
34
  starmallow/security/open_id_connect_url.py,sha256=IPsL2YzWc2mPwJbrUn6oFRTi7uRAG6mR62CGwmzBs1k,1399
35
35
  starmallow/security/utils.py,sha256=bd8T0YM7UQD5ATKucr1bNtAvz_Y3__dVNAv5UebiPvc,293
36
- starmallow-0.3.2.dist-info/METADATA,sha256=ZmfhOBgQ7BEHm7fhxs-xnqh6GJSKp2S77GkDpbf_kkc,5651
37
- starmallow-0.3.2.dist-info/WHEEL,sha256=y1bSCq4r5i4nMmpXeUJMqs3ipKvkZObrIXSvJHm1qCI,87
38
- starmallow-0.3.2.dist-info/licenses/LICENSE.md,sha256=QelyGgOzch8CXzy6HrYwHh7nmj0rlWkDA0YzmZ3CPaY,1084
39
- starmallow-0.3.2.dist-info/RECORD,,
36
+ starmallow-0.3.3.dist-info/METADATA,sha256=Xtq-b_MKBANM7Frnbvx1u3CN9P_b4Po2STs_3Jjfitk,5651
37
+ starmallow-0.3.3.dist-info/WHEEL,sha256=y1bSCq4r5i4nMmpXeUJMqs3ipKvkZObrIXSvJHm1qCI,87
38
+ starmallow-0.3.3.dist-info/licenses/LICENSE.md,sha256=QelyGgOzch8CXzy6HrYwHh7nmj0rlWkDA0YzmZ3CPaY,1084
39
+ starmallow-0.3.3.dist-info/RECORD,,