Skip to content

Commit

Permalink
fix using command line pipes, v0.3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
igorbrigadir committed Jul 25, 2021
1 parent 0ee68a4 commit eae73b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="twarc-csv",
version="0.3.6",
version="0.3.7",
url="https://github.com/docnow/twarc-csv",
author="Igor Brigadir",
author_email="[email protected]",
Expand All @@ -15,7 +15,7 @@
long_description_content_type="text/markdown",
python_requires=">=3.3",
install_requires=[
"twarc>=2.3.4",
"twarc>=2.3.10",
"pandas>=1.2.5",
"more-itertools>=8.7.0",
"tqdm>=4.59.0",
Expand Down
2 changes: 1 addition & 1 deletion twarc_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def csv(
)
return

if os.stat(infile.name).st_size == 0:
if not (infile.name == "<stdin>" or outfile.name == "<stdout>") and os.stat(infile.name).st_size == 0:
click.echo(
click.style(
f"💔 Input file is empty! Nothing to convert.",
Expand Down

0 comments on commit eae73b0

Please sign in to comment.