default should be "fail = False" . E.g. if the variable is not defined.