Skip to content

Commit

Permalink
FEAT-modin-project#1781: implement ClusterError.__str__ (modin-projec…
Browse files Browse the repository at this point in the history
…t#1782)

Co-authored-by: Vasily Litvinov <[email protected]>
Signed-off-by: Anatoly Myachev <[email protected]>
  • Loading branch information
2 people authored and aregm committed Sep 16, 2020
1 parent 3a1d929 commit 2ef9c43
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 2ef9c43

Please sign in to comment.