comparison 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
comparison
equal deleted inserted replaced
3151:f9f05d8ccba6 3152:7ce31f347ca3
187 return disco_infos 187 return disco_infos
188 188
189 def infosEb(fail): 189 def infosEb(fail):
190 if fail.check(defer.CancelledError): 190 if fail.check(defer.CancelledError):
191 reason = "request time-out" 191 reason = "request time-out"
192 fail = failure.Failure(exceptions.TimeOutError(fail.message)) 192 fail = failure.Failure(exceptions.TimeOutError(str(fail.value)))
193 else: 193 else:
194 try: 194 try:
195 reason = str(fail.value) 195 reason = str(fail.value)
196 except AttributeError: 196 except AttributeError:
197 reason = str(fail) 197 reason = str(fail)