Skip to content

Commit

Permalink
allow None
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Dec 20, 2023
1 parent 5657c99 commit ae51ac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion constructor/construct.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ def verify(info):
if key not in _EXTRA_ENVS_SCHEMA:
sys.exit(f"Key '{key}' not supported in 'extra_envs'.")
types = _EXTRA_ENVS_SCHEMA[key]
if not isinstance(value, types):
if value is not None and not isinstance(value, types):
types_str = " or ".join([type_.__name__ for type_ in types])
sys.exit(f"Value for 'extra_envs.{env_name}.{key}' "
f"must be an instance of {types_str}")
Expand Down

0 comments on commit ae51ac0

Please sign in to comment.