Fixed cases where --bytes and --units are both not supplied.

This commit is contained in:
Windows81 2021-09-19 16:47:03 +00:00
parent 8fcd4a019e
commit f317af3bf4
1 changed files with 1 additions and 1 deletions

View File

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