[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [sbws/master] Fix a missed conf['path'] -> conf.getpath() transition



commit 43812bed068fd1933022ccae8e83d67f9e84cb1e
Author: Matt Traudt <sirmatt@xxxxxxx>
Date:   Tue Aug 28 14:18:59 2018 -0400

    Fix a missed conf['path'] -> conf.getpath() transition
---
 sbws/core/scanner.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbws/core/scanner.py b/sbws/core/scanner.py
index 3e24d22..4e59498 100644
--- a/sbws/core/scanner.py
+++ b/sbws/core/scanner.py
@@ -379,7 +379,7 @@ def main(args, conf):
 
     os.makedirs(conf.getpath('paths', 'datadir'), exist_ok=True)
 
-    state = State(conf['paths']['state_fname'])
+    state = State(conf.getpath('paths', 'state_fname'))
     state['scanner_started'] = now_isodt_str()
 
     try:



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits