diff --git a/setup.py b/setup.py index 3db4251..716734f 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ long_description = f.read() setup(name='winping', - version='0.2.0', + version='0.2.1', description="Ping implementation which utilizes Windows ICMP API", url='https://github.com/Snawoot/winping', author='Vladislav Yarmak', diff --git a/winping/__main__.py b/winping/__main__.py index 145b311..bebb5ab 100644 --- a/winping/__main__.py +++ b/winping/__main__.py @@ -83,7 +83,7 @@ def main(): print("Ping request could not find host %s. " "Please check the name and try again." % (args.address), file=sys.stderr) - exit(3) + sys.exit(3) ip = ai_list[0][4][0] af = ai_list[0][0] ping_fun, Handle = ((ping, IcmpHandle) if af == socket.AF_INET