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')