Skip to content

Commit

Permalink
fix error message in method Site.get_comments_on_answers to commit 5…
Browse files Browse the repository at this point in the history
  • Loading branch information
wchistow committed Jul 20, 2023
1 parent 6dea147 commit 98cc06e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pystackapi/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def get_comment(self, c_id: int, **kwargs: Any) -> Item | None:
def get_comments_on_answers(self, ids: Iterable[int], **kwargs: Any) -> list[Item]:
"""Returns the comments on a set of answers."""
if not ids:
raise BadArgumentsError('the `ids` argument should be a non empty list.')
raise BadArgumentsError('the `ids` argument should be a non empty iterable object.')
return [Item(data) for data in
self.get(f'answers/{";".join(map(str, ids))}/comments/', **kwargs)['items']]

Expand Down

0 comments on commit 98cc06e

Please sign in to comment.