Browse Source

#98: convert error message to string

Arnau Sanchez 9 years ago
parent
commit
ede01c24f8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      youtube_upload/main.py

+ 1 - 1
youtube_upload/main.py

@@ -245,7 +245,7 @@ def main(arguments):
     try:
         run_main(parser, options, args)
     except googleapiclient.errors.HttpError as error:
-        raise RequestError("Server response: {0}".format(error.content.strip()))
+        raise RequestError("Server response: {0}".format(bytes.decode(error.content).strip()))
 
 def run():
     sys.exit(lib.catch_exceptions(EXIT_CODES, main, sys.argv[1:]))