Skip to content

Commit

Permalink
use sys.exit instead of exit
Browse files Browse the repository at this point in the history
  • Loading branch information
Snawoot committed Mar 21, 2019
1 parent 26f8cc2 commit b5e98ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion winping/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b5e98ee

Please sign in to comment.