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

use f-string to fix flake8 warning #539

Merged
merged 2 commits into from
Apr 11, 2020
Merged

Conversation

nuclearsandwich
Copy link
Member

Resolves a flake8 error which would manifest as a KeyError at runtime
when this exception is created.

Spotted in nightlies it took a minute to reproduce since the flake8 version we install claims to be incompatible with pyflakes 2.2.0 which was just released, which is likely why the error has the F999 code.

@nuclearsandwich nuclearsandwich self-assigned this Apr 10, 2020
Resolves a flake8 error which would manifest as a KeyError at runtime
when this exception is created.

Signed-off-by: Steven! Ragnarök <steven@nuclearsandwich.com>
@nuclearsandwich
Copy link
Member Author

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@nuclearsandwich
Copy link
Member Author

The CMake warning is from ament/ament_cmake#238 and is not related to this change.

Signed-off-by: Steven! Ragnarök <steven@nuclearsandwich.com>
@nuclearsandwich
Copy link
Member Author

Sanity rebuild on Linux alone Build Status

@dirk-thomas dirk-thomas changed the title Use named keyword args in format. use f-string to fix flake8 warning Apr 11, 2020
@dirk-thomas
Copy link
Member

I updated the title and will go ahead and merge this since CI showed the flake8 warning is resolved.

@dirk-thomas dirk-thomas merged commit 0c300d3 into master Apr 11, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix-exception-format branch April 11, 2020 04:55
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