Fix TypeError
can only concatenate str (not "bytes") to str
This commit is contained in:
committed by
linchiwei123
parent
4265ab3a41
commit
a4adf511fc
1
changelog/5782.bugfix.rst
Normal file
1
changelog/5782.bugfix.rst
Normal file
@@ -0,0 +1 @@
|
||||
Fix decoding error when printing an error response from ``--pastebin``.
|
||||
@@ -72,7 +72,7 @@ def create_new_paste(contents):
|
||||
if m:
|
||||
return "{}/show/{}".format(url, m.group(1))
|
||||
else:
|
||||
return "bad response: " + response
|
||||
return "bad response: " + response.decode("utf-8")
|
||||
|
||||
|
||||
def pytest_terminal_summary(terminalreporter):
|
||||
|
||||
Reference in New Issue
Block a user