Skip to content

Commit

Permalink
FEAT-#1781: implement ClusterError.__str__ (#1782)
Browse files Browse the repository at this point in the history
Co-authored-by: Vasily Litvinov <[email protected]>
Signed-off-by: Anatoly Myachev <[email protected]>
  • Loading branch information
anmyachev and vnlitvinov authored Jul 23, 2020
1 parent bc9055a commit 731816d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modin/experimental/cloud/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ def __init__(self, *args, cause: BaseException = None, traceback: str = None, **
self.traceback = traceback
super().__init__(*args, **kw)

def __str__(self):
if self.clause:
return f"clause: {self.cause}\n{super()}"
return str(super())


class CannotSpawnCluster(ClusterError):
"""
Expand Down

0 comments on commit 731816d

Please sign in to comment.