diff sat/memory/disco.py @ 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 559a625a236b
children 0318802dfe28
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)