Closed masipcat closed 4 years ago
Merging #915 into master will increase coverage by
0.1%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #915 +/- ##
========================================
+ Coverage 94.5% 94.5% +0.1%
========================================
Files 333 333
Lines 29407 29416 +9
========================================
+ Hits 27773 27782 +9
Misses 1634 1634
Impacted Files | Coverage Δ | |
---|---|---|
guillotina/request.py | 87.7% <100%> (ø) |
:arrow_up: |
guillotina/asgi.py | 93.2% <100%> (+0.4%) |
:arrow_up: |
guillotina/response.py | 88% <100%> (+0.1%) |
:arrow_up: |
Changed error handling logic: Guillotina (asgi app) catches all errors and returns a response for the ones that implements the handler IErrorResponseException. Otherwise raises the exception and is handled by ErrorsMiddleware.
The motivation behind this change is that Sentry middleware was capturing
DeserializationErrors
andPrecondionFailed
exceptions