[tor-commits] [sbws/master] Check that args has attribute

pastly at torproject.org pastly at torproject.org
Wed Jul 11 15:05:40 UTC 2018


commit 3e398b31e05b74097033e3cdcb640bf02a807b0c
Author: juga0 <juga at riseup.net>
Date:   Thu Jul 5 15:05:18 2018 +0000

    Check that args has attribute
---
 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 881f3c7..2b497ce 100644
--- a/sbws/core/stats.py
+++ b/sbws/core/stats.py
@@ -130,7 +130,7 @@ def print_stats(args, data):
         fastest_transfer/1024))
     print('Results come from', first, 'to', last, 'over a period of',
           duration)
-    if args.error_types:
+    if getattr(args, 'error_types', False) is True:
         _print_stats_error_types(data)
 
 





More information about the tor-commits mailing list