Skip to content

Commit

Permalink
Fix TypeError: 'NoneType' object is not iterable
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Sep 28, 2024
1 parent c44f1f7 commit 3b9d1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def run_with_logging(cmd, cwd=None):
logging.debug("Run: %s", shlex.join(cmd))
with subprocess.Popen(cmd, cwd=cwd, encoding="utf-8") as p:
try:
for line in p.stdout:
for line in (p.stdout or ()):
logging.debug(">>>> %s", line.rstrip())
except:
p.kill()
Expand Down

0 comments on commit 3b9d1fa

Please sign in to comment.