diff --git a/lib/yt_upload.py b/lib/yt_upload.py index 9093acd..8c726c3 100644 --- a/lib/yt_upload.py +++ b/lib/yt_upload.py @@ -252,8 +252,10 @@ def set_playlist(youtube, playlist_id, video_id): except Exception as e: if hasattr(e, 'message'): logging.error("Youtube: Error: " + str(e.message)) + exit(1) else: logging.error("Youtube: Error: " + str(e)) + exit(1) logging.info('Youtube: Video is correctly added to the playlist.')