Fix TypeError

can only concatenate str (not "bytes") to str
This commit is contained in:
linchiwei123 2019-08-24 20:49:00 +08:00 committed by linchiwei123
parent 4265ab3a41
commit a4adf511fc
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Fix decoding error when printing an error response from ``--pastebin``.

View File

@ -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):