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