Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change exit() to sys.exit() #339

Merged
merged 1 commit into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/receiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
cp.read(options.config)
else:
print("Config file not found at", options.config)
exit(1)
sys.exit(1)

Check warning on line 69 in bin/receiver.py

View check run for this annotation

Codecov / codecov/patch

bin/receiver.py#L69

Added line #L69 was not covered by tests

# Check for pidfile
pidfile = cp.get('daemon', 'pidfile')
Expand Down
3 changes: 2 additions & 1 deletion bin/sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import logging
from optparse import OptionParser
import os
import sys

Check warning on line 27 in bin/sender.py

View check run for this annotation

Codecov / codecov/patch

bin/sender.py#L27

Added line #L27 was not covered by tests

try:
import ConfigParser
Expand Down Expand Up @@ -57,7 +58,7 @@
cp.read(options.config)
else:
print("Config file not found at", options.config)
exit(1)
sys.exit(1)

Check warning on line 61 in bin/sender.py

View check run for this annotation

Codecov / codecov/patch

bin/sender.py#L61

Added line #L61 was not covered by tests

ssm.agents.logging_helper(cp)

Expand Down