-
Notifications
You must be signed in to change notification settings - Fork 13.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Remove recursive repr call #29314
Conversation
@@ -28,7 +28,7 @@ class CommandException(SupersetException): | |||
def __repr__(self) -> str: | |||
if self._exception: | |||
return repr(self._exception) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this line also be updated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't recursive, as it is calling repr
on a separate object
@jessie-ross thanks for the illustrative example in the description! ❤️ LGTM |
(cherry picked from commit 9444c6b)
(cherry picked from commit 9e054da)
SUMMARY
This repr call is recursive:
Causing the error not to be printed.
TESTING INSTRUCTIONS
Demonstration:
ADDITIONAL INFORMATION