Don't log missing config descriptions

This commit is contained in:
Florian Bruhin 2014-06-21 17:56:46 +02:00
parent 1d5269e700
commit a3e5a20063

View File

@ -156,8 +156,9 @@ class BaseType:
for val in self.valid_values:
try:
desc = self.valid_values.descriptions[val]
except KeyError as e:
logger.warning(e)
except KeyError:
# Some values are self-explaining and don't need a
# description.
desc = ""
out.append((val, desc))
return out