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

pastly at torproject.org pastly at torproject.org
Thu Aug 9 14:21:20 UTC 2018


commit e0a3b0a68bcdb9480be6f3ca9a2268bd7311955b
Author: juga0 <juga at 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)
 





More information about the tor-commits mailing list