Be more defensive

This commit is contained in:
Luke Murphy 2020-04-15 13:01:07 +02:00
parent 10d300628d
commit 46c86bdb0e
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 4 additions and 0 deletions

View File

@ -2,8 +2,12 @@
def filter_update_env(config, env):
if config.get("env", False) is False:
return config
for key, val in env:
config["env"][key] = val
return config