Skip to content

Conversation

@tianrui-wei
Copy link

@tianrui-wei tianrui-wei commented Nov 8, 2022

Sometimes application developers set the value of an environment variable to None. This fix adds a guard for mitigating this issue to prevent python from crashing.

Signed-off-by: Tianrui Wei tianrui@tianruiwei.com

@bedevere-bot
Copy link

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@ghost
Copy link

ghost commented Nov 8, 2022

All commit authors signed the Contributor License Agreement.
CLA signed

Sometimes application developers set the value of an environment
variable to None. This fix adds a guard for mitigating this issue to
prevent python from crashing.

Signed-off-by: Tianrui Wei <tianrui@tianruiwei.com>
@gpshead
Copy link
Member

gpshead commented Nov 8, 2022

environment dicts are str to str or a bytes to bytes mapping, they cannot contain None values.

@gpshead gpshead closed this Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants