changeset 3152:7ce31f347ca3

core (memory/disco): fixed failure creation in infosEb
author Goffi <goffi@goffi.org>
date Mon, 03 Feb 2020 13:42:43 +0100
parents f9f05d8ccba6
children 2c7b42f53e9a
files sat/memory/disco.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat/memory/disco.py	Wed Jan 29 20:52:23 2020 +0100
+++ b/sat/memory/disco.py	Mon Feb 03 13:42:43 2020 +0100
@@ -189,7 +189,7 @@
             def infosEb(fail):
                 if fail.check(defer.CancelledError):
                     reason = "request time-out"
-                    fail = failure.Failure(exceptions.TimeOutError(fail.message))
+                    fail = failure.Failure(exceptions.TimeOutError(str(fail.value)))
                 else:
                     try:
                         reason = str(fail.value)