fix [#26104] Context Set Boolean op fails [34892i]

could give better feedback but these operators are mainly for internal use.
This commit is contained in:
Campbell Barton 2011-02-19 04:28:07 +00:00
parent 8cde7ef020
commit e4a69ffb60

@ -51,7 +51,7 @@ rna_relative_prop = BoolProperty(name="Relative",
def context_path_validate(context, data_path):
import sys
try:
value = eval("context.%s" % data_path)
value = eval("context.%s" % data_path) if data_path else Ellipsis
except AttributeError:
if "'NoneType'" in str(sys.exc_info()[1]):
# One of the items in the rna path is None, just ignore this