Apply suggestions from code review

Co-authored-by: Simon <65854503+OpenSourceSimon@users.noreply.github.com>
pull/1271/head
Callum Leslie 3 years ago committed by GitHub
parent 33b5b45567
commit 044031064f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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}"

Loading…
Cancel
Save