Skip to content
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

[traceback] Fix "missing whitespace" bug #2225

Merged
merged 1 commit into from
Apr 26, 2022

Conversation

olivierphi
Copy link

@olivierphi olivierphi commented Apr 26, 2022

It turns out that we intentionally don't add such a whitespace at the beginning of the trace rendering, but we were actually doing so for the 2nd item of the stack rather than the 1st one

closes #2206

Type of changes

  • Bug fix
  • New feature
  • Documentation / docstrings
  • Tests
  • Other

Checklist

  • I've run the latest black with default args on new code.
  • I've updated CHANGELOG.md and CONTRIBUTORS.md where appropriate.
  • I've added tests for new code.
  • I accept that @willmcgugan may be pedantic in the code review.

Description

Before:

We can see a blank line before the 1st frame of the stack, and a missing blank line before the 2nd one:
Screenshot from 2022-04-26 11-37-56

After:

The 2nd frame is now properly displayed with a blank line before it, while the 1st frame starts right away at the beginning of the Panel:
Screenshot from 2022-04-26 11-37-35

@olivierphi olivierphi force-pushed the bugfix-missing-whitespace-in-traceback branch from 6a1789d to d495ca8 Compare April 26, 2022 10:31
It turns out that we intentionally don't add such a whitespace at the beginning of the trace rendering, but we were actually doing so for the 2nd item of the stack rather than the 1st one
@olivierphi olivierphi force-pushed the bugfix-missing-whitespace-in-traceback branch from d495ca8 to 83af951 Compare April 26, 2022 10:36
@olivierphi olivierphi marked this pull request as ready for review April 26, 2022 10:43
Copy link
Collaborator

@willmcgugan willmcgugan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@willmcgugan willmcgugan merged commit 49840e3 into master Apr 26, 2022
@willmcgugan willmcgugan deleted the bugfix-missing-whitespace-in-traceback branch April 26, 2022 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing whitespace in traceback
2 participants