Created
May 31, 2020 04:42
-
-
Save ardydedase/1942a7056463ea964a71fb516d1bc115 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| def get_env_variable(name) -> str: | |
| try: | |
| return os.environ[name] | |
| except KeyError: | |
| message = "Expected environment variable '{}' not set.".format(name) | |
| raise Exception(message) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment