Skip to content

fix: use response.text to get string rather than bytes#3156

Merged
milas merged 2 commits intodocker:mainfrom
mndeveci:fix-404-error
Aug 14, 2023
Merged

fix: use response.text to get string rather than bytes#3156
milas merged 2 commits intodocker:mainfrom
mndeveci:fix-404-error

Conversation

@mndeveci
Copy link
Copy Markdown
Contributor

@mndeveci mndeveci commented Jul 7, 2023

Fixes; #3151

response.content returns bytes which eventually fails at line 34 when searching for image not found error message.

This change fixes it by using response.text which returns string rather than bytes.

Signed-off-by: Mehmet Nuri Deveci <5735811+mndeveci@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@milas milas left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants