HomeSoftware Heritage

In case of errors, return a simple dictionary instead of pickled exception.

Description

In case of errors, return a simple dictionary instead of pickled exception.

Pros:

  • Language-independent
  • Works with unpickleable exceptions (eg. cimpl.KafkaException, and RLock objects in exceptions raised by tenacity)

Con:

  • Shows a less nice error on the client side (if the client is in Python), unless the error is whitelisted in reraise_exceptions.

Details

Provenance
vlorentzAuthored on Feb 5 2020, 5:11 PM
vlorentzPushed on Feb 14 2020, 12:22 PM
Differential Revision
D2627: In case of errors, return a simple dictionary instead of pickled exception.
Parents
rDCOREee7f05a878ec: Move unrelated line out of try block.
Branches
Unknown
Tags
Unknown
References
tag: v0.0.88
Build Status
Buildable 10589
Build 15812: test-and-buildJenkins