Skip to content

Commit

Permalink
Merge pull request #171 from MerleLiuKun/fix-error-message
Browse files Browse the repository at this point in the history
docs(message): 📝 update method error message
  • Loading branch information
MerleLiuKun authored Feb 18, 2024
2 parents 687aae7 + 7643cf7 commit 8af38ef
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyyoutube/resources/activities.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def list(
raise PyYouTubeException(
ErrorMessage(
status_code=ErrorCode.MISSING_PARAMS,
message=f"Specify at least one of for_username, id, managedByMe or mine",
message="Specify at least one of channel_id or mine",
)
)

Expand Down
2 changes: 1 addition & 1 deletion pyyoutube/resources/channel_sections.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def list(
raise PyYouTubeException(
ErrorMessage(
status_code=ErrorCode.MISSING_PARAMS,
message=f"Specify at least one of for_username, id, managedByMe or mine",
message="Specify at least one of channel_id, section_id or mine",
)
)
response = self._client.request(path="channelSections", params=params)
Expand Down
2 changes: 1 addition & 1 deletion pyyoutube/resources/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def list(
raise PyYouTubeException(
ErrorMessage(
status_code=ErrorCode.MISSING_PARAMS,
message=f"Specify at least one of for_username,channel_id,managedByMe or mine",
message="Specify at least one of for_handle,for_username,channel_id,managedByMe or mine",
)
)

Expand Down
2 changes: 1 addition & 1 deletion pyyoutube/resources/comment_threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def list(
raise PyYouTubeException(
ErrorMessage(
status_code=ErrorCode.MISSING_PARAMS,
message="Specify at least one of all_threads_related_to_channel_id, channel_id, thread_id or video_id",
message="Specify at least one of all_threads_related_to_channel_id,channel_id,thread_id or video_id",
)
)
response = self._client.request(path="commentThreads", params=params)
Expand Down
2 changes: 1 addition & 1 deletion pyyoutube/resources/comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def list(
raise PyYouTubeException(
ErrorMessage(
status_code=ErrorCode.MISSING_PARAMS,
message=f"Specify at least one of for_username, id, managedByMe or mine",
message="Specify at least one of comment_id, or parent_id",
)
)

Expand Down
2 changes: 1 addition & 1 deletion pyyoutube/resources/playlists.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def list(
raise PyYouTubeException(
ErrorMessage(
status_code=ErrorCode.MISSING_PARAMS,
message=f"Specify at least one of channel_id, playlist_id or mine",
message="Specify at least one of channel_id, playlist_id or mine",
)
)
response = self._client.request(path="playlists", params=params)
Expand Down
2 changes: 1 addition & 1 deletion pyyoutube/resources/videos.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def list(
raise PyYouTubeException(
ErrorMessage(
status_code=ErrorCode.MISSING_PARAMS,
message=f"Specify at least one of for_username,channel_id,managedByMe or mine",
message="Specify at least one of chart,video_id or my_rating",
)
)
response = self._client.request(path="videos", params=params)
Expand Down

0 comments on commit 8af38ef

Please sign in to comment.