-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set launchable config #60
Conversation
5c77eed
to
526259d
Compare
526259d
to
ed08475
Compare
1c2ccf1
to
6a29686
Compare
cd01786
to
c1626fc
Compare
tests/test_protecter.py
Outdated
if current_config: | ||
os.environ[REPORT_ERROR_KEY] = current_config | ||
else: | ||
os.environ.pop(REPORT_ERROR_KEY) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nits]
Although it is apparent the key REPORT_ERROR_KEY
exists in environment variable, it is better to add None
as default value to avoid key not exists error.
os.environ.pop(REPORT_ERROR_KEY, None)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one nits but not critical.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
SSIA