Don't inject PlayContext properties as variables if they're None
Fixes bug introduced in 078ebb0
pull/4420/head
parent
e02b98274b
commit
da02aba173
|
@ -519,7 +519,7 @@ class PlayContext(Base):
|
|||
|
||||
var_val = getattr(self, prop)
|
||||
for var_opt in var_list:
|
||||
if var_opt not in variables:
|
||||
if var_opt not in variables and var_val is not None:
|
||||
variables[var_opt] = var_val
|
||||
except AttributeError:
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue