[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [sbws/master] Check that args has attribute
commit 3e398b31e05b74097033e3cdcb640bf02a807b0c
Author: juga0 <juga@xxxxxxxxxx>
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)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits