We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 868eef8 commit c94cfd0Copy full SHA for c94cfd0
reflex/environment.py
@@ -232,7 +232,9 @@ def interpret_env_var_value(
232
if len(args) != 2:
233
msg = f"Invalid mapping type for environment variable {field_name}: {field_type}. Must have exactly two type arguments."
234
raise ValueError(msg)
235
- items = value.split(":")
+ if not value.strip():
236
+ return {}
237
+ items = value.strip().split(":")
238
if len(items) % 2 != 0:
239
msg = f"Invalid mapping value: {value!r} for {field_name}. Must be in the format key1:value1:key2:value2"
240
raise EnvironmentVarValueError(msg)
0 commit comments