core (memory/disco): fixed failure creation in infosEb

This commit is contained in:
Goffi 2020-02-03 13:42:43 +01:00
commit beb098b20a

View file

@ -189,7 +189,7 @@ class Discovery(object):
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)