Skip to content

Fix dump-user-env

segfault requested to merge fix-dump-user-env into testing

We handle cases that some of the environment variables of ENV_VARS_TO_DUMP are not set. Currently, those conditions will never be met, because if any of the env vars in ENV_VARS_TO_DUMP are not set, os.environ[e] will fail with a KeyError.

Using os.getenv(e) instead fixes that.

Merge request reports