Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Check stderr for None
  • Loading branch information
rozhkovdmitrii committed Feb 3, 2022
commit fc6d8ac00d29ca7ddc89dbc4d3d44224d4d4c517
2 changes: 1 addition & 1 deletion proxy/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def run_cli(self, cmd: List[str]) -> str:
self.debug("Calling: " + " ".join(cmd))
proc_result = subprocess.run(cmd, timeout=neon_cli_timeout, universal_newlines=True, stdout=subprocess.PIPE,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neon_cli_timeout should only be used for neon-cli

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, Vasilii!
Fixed here and in the other place

stderr=subprocess.PIPE)
if proc_result.stderr:
if proc_result.stderr is not None:
print(proc_result.stderr, file=sys.stderr)
return proc_result.stdout

Expand Down