pelican/plugins/data_files/tools/cli.py
def _err(msg, die=None):
    """Print an error message and exits if an exit code is given"""
    sys.stderr.write(f"ERROR: {msg}\n")
    if die:
        sys.exit(die if type(die) is int else 1)
Print an error message and exits if an exit code is given
Print an error message and exits if an exit code is given
Print an error message and exits if an exit code is given
def _err(msg, die=None):
    sys.stderr.write(f"ERROR: {msg}\n")
    if die:
        sys.exit(die if type(die) is int else 1)
def _err ( msg , die = None ) : sys . stderr . write ( f"ERROR: {msg}\n" ) if die : sys . exit ( die if type ( die ) is int else 1 )
Print an error message and exits if an exit code is given
Print an error message and exits if an exit code is given
"""Print an error message and exits if an exit code is given"""
msg
die