Skip to content

Commit

Permalink
Merge pull request #614 from DocNow/fix_empty_query_for_searches
Browse files Browse the repository at this point in the history
Fix empty query file raising an error for the searches
  • Loading branch information
SamHames authored Mar 25, 2022
2 parents af57b50 + fe3f898 commit dbcbfee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions twarc/command2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1675,6 +1675,8 @@ def searches(
with FileLineProgressBar(infile, outfile, disable=hide_progress) as progress:

merged_query = ""
extended_query = None
query = None

for query in infile:
query = query.strip()
Expand Down
2 changes: 1 addition & 1 deletion twarc/version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import platform

version = "2.10.0"
version = "2.10.1"

user_agent = f"twarc/{version} ({platform.system()} {platform.machine()}) {platform.python_implementation()}/{platform.python_version()}"

0 comments on commit dbcbfee

Please sign in to comment.