[sbws/master] Replace conf['paths'] by conf.getpath('paths')

9 Aug
2018
9 Aug
'18
2:21 p.m.
commit e0a3b0a68bcdb9480be6f3ca9a2268bd7311955b Author: juga0 <juga@riseup.net> Date: Tue Jul 24 17:16:40 2018 +0000 Replace conf['paths'] by conf.getpath('paths') --- sbws/core/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbws/core/stats.py b/sbws/core/stats.py index 38f8978..f865b92 100644 --- a/sbws/core/stats.py +++ b/sbws/core/stats.py @@ -156,7 +156,7 @@ def main(args, conf): :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)
2493
Age (days ago)
2493
Last active (days ago)
0 comments
1 participants
participants (1)
-
pastly@torproject.org