commit 87818dfe5efc07be3131779d8dfc28a38a9e41a9 Author: juga0 juga@riseup.net Date: Tue Jul 24 17:23:52 2018 +0000
Replace conf['paths'] by conf.getpath('paths') --- sbws/core/cleanup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbws/core/cleanup.py b/sbws/core/cleanup.py index 4600cf8..9a04ec0 100644 --- a/sbws/core/cleanup.py +++ b/sbws/core/cleanup.py @@ -174,7 +174,7 @@ def main(args, conf): :param argparse.Namespace args: command line arguments :param configparser.ConfigParser conf: parsed config files ''' - datadir = conf['paths']['datadir'] + datadir = conf.getpath('paths', 'datadir') if not os.path.isdir(datadir): fail_hard('%s does not exist', datadir)