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

Add the .strip() method to remove whitespace characters at both ends … #5968

Closed
wants to merge 2 commits into from

Conversation

ut003460
Copy link
Contributor

@ut003460 ut003460 commented Jun 19, 2024

In the for loop, line. trip() was added to ensure that white space characters before and after each line processing are removed

…of a string

In the for loop, line. trip() was added to ensure that white space characters before and after each line processing are removed

Signed-off-by: ut003460 <[email protected]>
1.Exception message improvement
Change the f "Failed getting information about container:" f "{container_id}." that concatenates two strings
together to a single string to avoid unnecessary string concatenation
2.Replace container ["Id"] with container. get ("Id") to avoid throwing KeyError when the "Id" key is missing in the dictionary

Signed-off-by: ut003460 <[email protected]>
@ut003460 ut003460 closed this Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant