Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
check for empty string instead of None
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaudill committed Jun 10, 2024
1 parent 2b96ecc commit ed46d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def modify(cli_):

# We check that stdin isn’t None to ensure that we don’t go down this code
# path by mistake (e.g. in CI, where stdin will never by a TTY).
if ((not sys.stdin.isatty()) and (commands == []) and (stdin != None)):
if ((not sys.stdin.isatty()) and (commands == []) and (stdin != '')):
# https://stackoverflow.com/a/6482200

# We use “decode("utf-8")” here because stdout seems default to a bytes
Expand Down

0 comments on commit ed46d89

Please sign in to comment.