From ba8e76e7b69e19e5c5d6ea79aa82bb6cb7cdc864 Mon Sep 17 00:00:00 2001 From: Jessie Ross Date: Thu, 20 Jun 2024 17:52:44 +0700 Subject: [PATCH 1/2] Fix recursive error --- superset/commands/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/commands/exceptions.py b/superset/commands/exceptions.py index 7fc89ac1d93aa..560a38e021502 100644 --- a/superset/commands/exceptions.py +++ b/superset/commands/exceptions.py @@ -28,7 +28,7 @@ class CommandException(SupersetException): def __repr__(self) -> str: if self._exception: return repr(self._exception) - return repr(self) + return repr(super()) class ObjectNotFoundError(CommandException): From 8912ffc3f7f846b7d3521771e0e8c478f0a28dfa Mon Sep 17 00:00:00 2001 From: Jessie Ross Date: Thu, 20 Jun 2024 18:26:16 +0700 Subject: [PATCH 2/2] Fix --- superset/commands/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/commands/exceptions.py b/superset/commands/exceptions.py index 560a38e021502..aa51886797723 100644 --- a/superset/commands/exceptions.py +++ b/superset/commands/exceptions.py @@ -28,7 +28,7 @@ class CommandException(SupersetException): def __repr__(self) -> str: if self._exception: return repr(self._exception) - return repr(super()) + return super().__repr__() class ObjectNotFoundError(CommandException):