[sbws/master] Check that args has attribute

11 Jul
2018
11 Jul
'18
3:05 p.m.
commit 3e398b31e05b74097033e3cdcb640bf02a807b0c Author: juga0 <juga@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)
2530
Age (days ago)
2530
Last active (days ago)
0 comments
1 participants
participants (1)
-
pastly@torproject.org