mirror of
https://github.com/sivel/speedtest-cli.git
synced 2026-01-04 11:00:05 +01:00
Fixed cases where --bytes and --units are both not supplied.
This commit is contained in:
@@ -1865,7 +1865,7 @@ def shell():
|
|||||||
raise SpeedtestCLIError('Cannot supply both --no-download and '
|
raise SpeedtestCLIError('Cannot supply both --no-download and '
|
||||||
'--no-upload')
|
'--no-upload')
|
||||||
|
|
||||||
if not args.bytes and not args.units:
|
if args.bytes and args.units:
|
||||||
raise SpeedtestCLIError('Cannot supply both --bytes and '
|
raise SpeedtestCLIError('Cannot supply both --bytes and '
|
||||||
'--units')
|
'--units')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user