Skip to content

Commit

Permalink
Fix error reporting message
Browse files Browse the repository at this point in the history
  • Loading branch information
CasualYT31 committed Dec 23, 2024
1 parent fffbca6 commit d2eecb9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gallery_dl/extractor/tiktok.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,10 @@ def items(self):
elif video_detail["statusCode"] != 0:
raise exception.ExtractionError(
tiktok_url + ": Received unknown error code " +
str(video_detail['statusCode']) + " with message " +
(video_detail['statusMsg'] if
"statusMsg" in video_detail else "")
str(video_detail['statusCode']) + (
" with message " + video_detail['statusMsg'] if
"statusMsg" in video_detail else ""
)
)
post_info = video_detail["itemInfo"]["itemStruct"]
id = post_info["id"]
Expand Down

0 comments on commit d2eecb9

Please sign in to comment.