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

Strip useless linebreak in the payload of send:exception events #7407

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

SpecLad
Copy link
Contributor

@SpecLad SpecLad commented Jan 29, 2024

Motivation and context

traceback.format_exception adds a \n to each element of the resulting list, so the message will always have a pointless \n at the end. Removing it makes CSV reports that include the message easier to parse visually, because there's no longer a linebreak in the middle of each line.

How has this been tested?

Manual testing by triggering an exception.

Checklist

  • I submit my changes into the develop branch
  • I have created a changelog fragment
  • [ ] I have updated the documentation accordingly
  • [ ] I have added tests to cover my changes
  • [ ] I have linked related issues (see GitHub docs)
  • [ ] I have increased versions of npm packages if it is necessary
    (cvat-canvas,
    cvat-core,
    cvat-data and
    cvat-ui)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

`traceback.format_exception` adds a `\n` to each element of the resulting
list, so the message will always have a pointless `\n` at the end. Removing
it makes CSV reports that include the message easier to parse visually,
because there's no longer a linebreak in the middle of each line.
@SpecLad SpecLad marked this pull request as ready for review January 29, 2024 17:12
@SpecLad SpecLad requested a review from azhavoro January 29, 2024 17:12
@nmanovic nmanovic merged commit c794836 into cvat-ai:develop Jan 31, 2024
42 checks passed
@cvat-bot cvat-bot bot mentioned this pull request Feb 9, 2024
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.

2 participants