Commit dd96ee31 authored by Denis Bilenko's avatar Denis Bilenko

fix error message of LinkedFailed exception

parent fdcc237a
...@@ -497,10 +497,11 @@ class LinkedFailed(LinkedExited): ...@@ -497,10 +497,11 @@ class LinkedFailed(LinkedExited):
msg = "%r failed with %s" msg = "%r failed with %s"
def __init__(self, source): def __init__(self, source):
exception = source.exception
try: try:
excname = source.exception.__name__ excname = exception.__class__.__name__
except: except:
excname = str(source) or repr(source) excname = str(exception) or repr(exception)
LinkedExited.__init__(self, self.msg % (source, excname)) LinkedExited.__init__(self, self.msg % (source, excname))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment