spack: no stacktrace if not in debug mode + fix emacs variant (#4098)
* spack: no stacktrace if not in debug mode + fix emacs variant * emacs: removed dead code
This commit is contained in:

committed by
GitHub

parent
72d45f7a44
commit
ae9a9e019a
@@ -389,9 +389,9 @@ def _value_setter(self, value):
|
||||
self._original_value = value
|
||||
self._value = False
|
||||
else:
|
||||
msg = 'cannot construct a BoolValuedVariant from '
|
||||
msg = 'cannot construct a BoolValuedVariant for "{0}" from '
|
||||
msg += 'a value that does not represent a bool'
|
||||
raise ValueError(msg)
|
||||
raise ValueError(msg.format(self.name))
|
||||
|
||||
def __contains__(self, item):
|
||||
return item is self.value
|
||||
|
Reference in New Issue
Block a user