Skip to content

Python update progress#939

Closed
IsaacCalligeros95 wants to merge 2 commits intomainfrom
_smlng/python-updateprogress
Closed

Python update progress#939
IsaacCalligeros95 wants to merge 2 commits intomainfrom
_smlng/python-updateprogress

Conversation

@IsaacCalligeros95
Copy link
Copy Markdown
Collaborator

Original PR from community member @smlng. For Teamcity and security protocols in place this has to be re-created.

According to the documentation the message for updateprogress in Python scripts is optional. However, when a message is not provided the script fails because the default for message is None which is then passed to the inner encode() function that does not like None.

In this fix the default value for message is changed from None to "" (empty string). Further this PR provided necessary test fixtures to assert the correct behavior.

@IsaacCalligeros95 IsaacCalligeros95 changed the title @Smlng - Python update progress Python update progress Oct 28, 2022
smlng added 2 commits November 2, 2022 13:26
Documentation and code suggest that message is optional to updateprogress.
However, when not providing a message to updateprogress it fails with an
error from encode() as message is None. This is fixed here, by using an
empty string as default for message instead of None.
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