Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sivel/speedtest-cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'speedtest.py')
-rwxr-xr-xspeedtest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/speedtest.py b/speedtest.py
index 79c473e..da74eb2 100755
--- a/speedtest.py
+++ b/speedtest.py
@@ -1780,7 +1780,8 @@ def main():
print_('\nCancelling...')
except (SpeedtestException, SystemExit):
e = get_exception()
- if getattr(e, 'code', 1) != 0:
+ # Ignore a successful exit, or argparse exit
+ if getattr(e, 'code', 1) not in (0, 2):
raise SystemExit('ERROR: %s' % e)