From 2ef9c439fc4779c86666dffdda11ab75fb3503d6 Mon Sep 17 00:00:00 2001 From: anmyachev <45976948+anmyachev@users.noreply.github.com> Date: Thu, 23 Jul 2020 23:07:10 +0300 Subject: [PATCH] FEAT-#1781: implement ClusterError.__str__ (#1782) Co-authored-by: Vasily Litvinov <45396231+vnlitvinov@users.noreply.github.com> Signed-off-by: Anatoly Myachev --- modin/experimental/cloud/base.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modin/experimental/cloud/base.py b/modin/experimental/cloud/base.py index e73d4b4bf9b..f78ddf30c7d 100644 --- a/modin/experimental/cloud/base.py +++ b/modin/experimental/cloud/base.py @@ -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): """