0x64746b/alot — comment on commit f2c8b32089de283dd560aaae570d28f6f2ab83a2
File: alot/settings.py line 175
By 0x64746b:

I think it makes the code more robust. If the default config changes in the future, or the user touches it, you get a meaningful error. I think it's bad style to access resources before testing whether they are available. One should not rely on resources outside one's control.

```
$ cat /tmp/test.ini
[general]
is_empty =
$
```

```
In [110]: config.read('/tmp/test.ini')
Out[110]: ['/tmp/test.ini']

In [111]: config.has_option('general', 'does_not_exist')
Out[111]: False

In [112]: config.has_option('general', 'is_empty')
Out[112]: True

In [113]:

```