Don't inject PlayContext properties as variables if they're None

Fixes bug introduced in 078ebb0
pull/14629/head
James Cammarata 9 years ago
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…
Cancel
Save