Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 7437f940eb5b0f458f63a0aae48739fb0acc3ad3
https://github.com/tribe29/checkmk/commit/7437f940eb5b0f458f63a0aae48739fb0…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-09-23 (Wed, 23 Sep 2020)
Changed paths:
M cmk/fetchers/controller.py
M cmk/utils/exceptions.py
M tests/unit/cmk/fetchers/test_controller.py
Log Message:
-----------
Serialize exceptions with pickle
We were using `repr()`/`eval()` but this naive scheme does not let us
transport our special exceptions (defined in `cmk.utils.exceptions`).
Exceptions that are nested in a different module would not be
deserialized properly either.
We replace `repr()`/`eval()` with `pickle`, which is the prefered
serialization method in Python and does not have the same drawbacks.
This further has the advantage of preserving the traceback.
CMK-5472
Change-Id: I867b5815605919a5c530cc1823afc4131290b4c6