Surely these should not cause Terminator to throw exceptions, we should ignore useless data.
This commit is contained in:
parent
57b0bb36f3
commit
ebf128c1d8
|
@ -167,7 +167,7 @@ class TerminatorConfValuestoreRC (TerminatorConfValuestore):
|
||||||
|
|
||||||
# Check if this is actually a key we care about
|
# Check if this is actually a key we care about
|
||||||
if not self.defaults.has_key (key):
|
if not self.defaults.has_key (key):
|
||||||
raise AttributeError;
|
continue
|
||||||
|
|
||||||
deftype = self.defaults[key].__class__.__name__
|
deftype = self.defaults[key].__class__.__name__
|
||||||
if deftype == 'bool':
|
if deftype == 'bool':
|
||||||
|
@ -183,7 +183,7 @@ class TerminatorConfValuestoreRC (TerminatorConfValuestore):
|
||||||
self.values[key] = float (value)
|
self.values[key] = float (value)
|
||||||
elif deftype == 'list':
|
elif deftype == 'list':
|
||||||
err (_("Reading list values from .config/terminator/config is not currently supported"))
|
err (_("Reading list values from .config/terminator/config is not currently supported"))
|
||||||
raise ValueError
|
continue
|
||||||
else:
|
else:
|
||||||
self.values[key] = value
|
self.values[key] = value
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue