kopia lustrzana https://gitlab.com/marnanel/chapeau
Added top-level exception handler to InboxView, since it seems to be experiencing difficulties.
Really this needs to be a more general solution.status-serialisers
rodzic
ceed10b278
commit
c9ad177220
|
@ -493,11 +493,20 @@ class InboxView(CollectionView):
|
|||
body = body,
|
||||
)
|
||||
|
||||
try:
|
||||
validate(
|
||||
path=request.path,
|
||||
headers=request.headers,
|
||||
body=body,
|
||||
)
|
||||
except Exception as problem:
|
||||
import traceback
|
||||
|
||||
log.warning("Processing this message caused an exception: %s %s",
|
||||
problem,
|
||||
''.join(traceback.format_exception(
|
||||
None, problem, problem.__traceback__)),
|
||||
)
|
||||
|
||||
# I think this should be 201 Created, but the spec
|
||||
# says 200, so 200 is what they get.
|
||||
|
|
Ładowanie…
Reference in New Issue