Skip to content

Commit

Permalink
build: strip warnings from stdout in get_release (#37795)
Browse files Browse the repository at this point in the history
build: strip warnings from stdout in `get_release` (#37277)

build: strip warnings from stdout in get_release

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
  • Loading branch information
VerteDinde and codebytere committed Apr 3, 2023
1 parent 82869b8 commit a2d0af4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion script/release/uploaders/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,10 @@ def upload_sha256_checksum(version, file_path, key_prefix=None):
def get_release(version):
script_path = os.path.join(
ELECTRON_DIR, 'script', 'release', 'find-github-release.js')
release_info = execute(['node', script_path, version])
# Strip warnings from stdout to ensure the only output is the desired object
release_env = os.environ.copy()
release_env['NODE_NO_WARNINGS'] = '1'
release_info = execute(['node', script_path, version], release_env)
release = json.loads(release_info)
return release

Expand Down

0 comments on commit a2d0af4

Please sign in to comment.