Hi Chris,
Does it make sense to have getvar and setvar raise a different exception than RuntimeError when the variable is not found, to allow specifically catching that error? (mworkscore.UnknownVariableError?)
What I’m trying to do is:
if 'variablename' in mworkscore.codec:
and now I’m doing it as
try:
getvar('variablename')
except RuntimeError:
Which is probably a decent workaround.
Mark