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

[tor-commits] [sbws/master] Remove is_innited dependency



commit 4c6eb9e83572e01049893909b3f935e1092186ac
Author: juga0 <juga@xxxxxxxxxx>
Date:   Wed Jul 18 19:51:28 2018 +0000

    Remove is_innited dependency
---
 sbws/core/scanner.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/sbws/core/scanner.py b/sbws/core/scanner.py
index 5e98e99..f7a08d7 100644
--- a/sbws/core/scanner.py
+++ b/sbws/core/scanner.py
@@ -9,7 +9,7 @@ from ..lib.relayprioritizer import RelayPrioritizer
 from ..lib.destination import DestinationList
 from ..util.timestamp import now_isodt_str
 from ..util.state import State
-from sbws.globals import (fail_hard, is_initted)
+from sbws.globals import fail_hard
 import sbws.util.stem as stem_utils
 import sbws.util.requests as requests_utils
 from argparse import ArgumentDefaultsHelpFormatter
@@ -367,9 +367,6 @@ def gen_parser(sub):
 
 
 def main(args, conf):
-    if not is_initted(args.directory):
-        fail_hard('Sbws isn\'t initialized. Try sbws init')
-
     if conf.getint('scanner', 'measurement_threads') < 1:
         fail_hard('Number of measurement threads must be larger than 1')
 



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