From f317af3bf42729616b538e6227cdca29c1cb1578 Mon Sep 17 00:00:00 2001 From: Windows81 Date: Sun, 19 Sep 2021 16:47:03 +0000 Subject: [PATCH] Fixed cases where --bytes and --units are both not supplied. --- speedtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speedtest.py b/speedtest.py index 2e4f06c..7a5cc60 100755 --- a/speedtest.py +++ b/speedtest.py @@ -1865,7 +1865,7 @@ def shell(): raise SpeedtestCLIError('Cannot supply both --no-download and ' '--no-upload') - if not args.bytes and not args.units: + if args.bytes and args.units: raise SpeedtestCLIError('Cannot supply both --bytes and ' '--units')