Skip to content

Commit

Permalink
fix expansions
Browse files Browse the repository at this point in the history
  • Loading branch information
igorbrigadir committed Mar 16, 2022
1 parent 46fc178 commit 455dae1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions twarc/command2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,11 @@ def quotes(T, tweet_id, outfile, limit, max_results, hide_progress, **kwargs):
"""
count = 0
lookup_total = 0
kwargs = _process_expansions_shortcuts(kwargs)
# Also remove media poll and place from kwargs, these are not valid for this endpoint:
kwargs.pop("media_fields", None)
kwargs.pop("poll_fields", None)
kwargs.pop("place_fields", None)

if not re.match("^\d+$", str(tweet_id)):
click.echo(click.style("Please enter a tweet ID", fg="red"), err=True)
Expand Down

0 comments on commit 455dae1

Please sign in to comment.