Some minor style improvements

This commit is contained in:
Alessandro
2020-02-29 21:43:40 +01:00
parent bcd24cc035
commit ab32fbbf98
4 changed files with 14 additions and 26 deletions

View File

@@ -38,7 +38,4 @@ class Settings:
"""Return the corresponding setting.
Return None if there is no such setting yet."""
try:
return self._dct[attr]
except Exception:
return None
return self._dct.get(attr, None)