From 768bbb021548c4f32a82fb5c2cbd0cb961bcad9b Mon Sep 17 00:00:00 2001 From: LecygneNoir Date: Mon, 26 Mar 2018 21:25:28 +0200 Subject: [PATCH] Typo in error messages --- lib/pt_upload.py | 2 +- lib/yt_upload.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 '