Conversation
`os.environ['FOO']` will raise `IndexError` if `FOO` is not found, while `os.environ.get('FOO')` would simply return `None`
Fixes #82492
🔗 Helpful Links🧪 See artifacts and rendered test results here
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 FailuresAs of commit 3a13b1e: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot merge -f "[OTHER] PR CI is green, no need to wait for trunk" |
|
@pytorchbot successfully started a merge job. Check the current status here |
|
Hey @malfet. |
Summary:
`os.environ['FOO']` will raise `IndexError` if `FOO` is not found, while `os.environ.get('FOO')` would simply return `None`
Fixes #82492
Pull Request resolved: #82495
Approved by: https://github.com/huydhn, https://github.com/kit1980
Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/b9cdd6d0ac66965466576da760cd4e2485911dd3
Reviewed By: osalpekar
Differential Revision: D38306853
Pulled By: malfet
fbshipit-source-id: 8bcd927c5efe12b0c9f084d7d32d6b733bd083b7
os.environ['FOO']will raiseIndexErrorifFOOis not found, whileos.environ.get('FOO')would simply returnNoneFixes #82492