diff --git a/lib/pt_upload.py b/lib/pt_upload.py index 898e083..9c6c880 100644 --- a/lib/pt_upload.py +++ b/lib/pt_upload.py @@ -135,6 +135,6 @@ def run(options): upload_video(oauth, secret, options) except Exception as e: if hasattr(e, 'message'): - print("Error: " + e.message) + print("Error: " + str(e.message)) else: print("Error: " + str(e)) diff --git a/lib/yt_upload.py b/lib/yt_upload.py index a456f6c..7368871 100644 --- a/lib/yt_upload.py +++ b/lib/yt_upload.py @@ -127,7 +127,7 @@ def resumable_upload(request): if 'id' in response: template = ('Youtube : Video was successfully ' 'uploaded.\n' - 'Watch it at https://youtu.be/%s (post-encoding could get some time)') + 'Watch it at https://youtu.be/%s (post-encoding could take some time)') print(template % response['id']) else: template = ('Youtube : The upload failed with an '