Skip to content

Commit

Permalink
MNT #192 remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Jan 5, 2022
1 parent 4fd050e commit f85aa33
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions punx/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,13 @@
logger = utils.setup_logger(__name__, logging.INFO)


def exit_message(msg, status=None, exit_code=1):
def exit_message(msg, exit_code=1):
"""
exit this code with a message and a status
:param str msg: text to be reported
:param int status: 0 - 50 (default: ERROR = 40)
:param int exit_code: 0: no error, 1: error (default)
"""
if status is None:
status = ERROR
logging.info("%s", msg)
exit(exit_code)

Expand Down

0 comments on commit f85aa33

Please sign in to comment.