HomeSoftware Heritage

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

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

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.
Build Status
Buildable 10589
Build 15812: test-and-buildJenkins

Commit No Longer Exists

This commit no longer exists in the repository.