Skip to content
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

Update all os.environ dict calls to os.getenv calls #43

Merged
merged 1 commit into from
Nov 19, 2023

Conversation

nishant-nayak
Copy link
Member

Description

Update all os.environ dict calls to os.getenv calls. This is a safer method of calling environment variables because getenv returns None if the variable doesn't exist.

Fixes #31

Dependencies

N/A

Type of Change

What types of changes does your code introduce?
Put an x in the boxes that apply

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration. (for bug fix / breaking change)
Put an x in the boxes that apply

  • Tested locally

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Copy link

render bot commented Nov 18, 2023

Copy link

livecycle bot commented Nov 18, 2023

ieee-nitk

Your Livecycle playground is ready 🎉.

Playground version up to date (0cfd90c)

Invite team members and start collaborating 💪

Check the box and click "invite" to invite collaborators

  • Anirudh Prabhakaran

invite

Members already invited
  • Nishant Nayak

Click here to invite the rest of your team.

@anirudhprabhakaran3 anirudhprabhakaran3 merged commit da9443a into main Nov 19, 2023
1 check passed
@anirudhprabhakaran3 anirudhprabhakaran3 deleted the replace_os_environ branch November 19, 2023 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update os.environ calls to os.getenv calls
2 participants