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

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



commit 88e1f05cf45d4d7bc98a023aa468bde346a98eff
Author: juga0 <juga@xxxxxxxxxx>
Date:   Wed Jul 18 19:51:57 2018 +0000

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

diff --git a/sbws/core/stats.py b/sbws/core/stats.py
index 2b497ce..38f8978 100644
--- a/sbws/core/stats.py
+++ b/sbws/core/stats.py
@@ -1,4 +1,4 @@
-from sbws.globals import (fail_hard, is_initted)
+from sbws.globals import fail_hard
 from sbws.lib.resultdump import Result
 from sbws.lib.resultdump import ResultError
 from sbws.lib.resultdump import ResultErrorCircuit
@@ -155,8 +155,6 @@ def main(args, conf):
     :param argparse.Namespace args: command line arguments
     :param configparser.ConfigParser conf: parsed config files
     '''
-    if not is_initted(args.directory):
-        fail_hard('Sbws isn\'t initialized. Try sbws init')
 
     datadir = conf['paths']['datadir']
     if not os.path.isdir(datadir):



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