From 044031064f53381385b828f23565bc28a9fd70c8 Mon Sep 17 00:00:00 2001 From: Callum Leslie Date: Wed, 21 Dec 2022 19:49:45 +0000 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Simon <65854503+OpenSourceSimon@users.noreply.github.com> --- TTS/TikTok.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TTS/TikTok.py b/TTS/TikTok.py index 3b2908d..b9bc1a8 100644 --- a/TTS/TikTok.py +++ b/TTS/TikTok.py @@ -150,10 +150,10 @@ class TikTokTTSException(Exception): def __str__(self) -> str: if self._code == 1: - return f"Code: {self._message}, reason: probably the aid value isn't correct, message: {self._message}" + return f"Code: {self._code}, reason: probably the aid value isn't correct, message: {self._message}" if self._code == 2: - return f"Code: {self._message}, reason: the text is too long, message: {self._message}" + return f"Code: {self._code}, reason: the text is too long, message: {self._message}" if self._code == 4: return f"Code: {self._code}, reason: the speaker doesn't exist, message: {self._message}"