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: for val in self.valid_values:
try: try:
desc = self.valid_values.descriptions[val] desc = self.valid_values.descriptions[val]
except KeyError as e: except KeyError:
logger.warning(e) # Some values are self-explaining and don't need a
# description.
desc = "" desc = ""
out.append((val, desc)) out.append((val, desc))
return out return out