Remove cruft for running certbot directly from main

This commit is contained in:
Erica Portnoy 2019-11-22 17:40:35 -08:00
parent 68fcdbb5be
commit ee37260df1
2 changed files with 0 additions and 14 deletions

View file

@ -1348,10 +1348,3 @@ def main(cli_args=None):
util.atexit_register(report.print_messages)
return config.func(config, plugins)
if __name__ == "__main__":
err_string = main()
if err_string:
logger.warning("Exiting with message %s", err_string)
sys.exit(err_string) # pragma: no cover

View file

@ -11,10 +11,3 @@ logger = logging.getLogger(__name__)
def main(*args, **kwargs):
"""Shim around internal main function"""
return internal_main.main(*args, **kwargs)
if __name__ == "__main__":
err_string = main()
if err_string:
logger.warning("Exiting with message %s", err_string)
sys.exit(err_string) # pragma: no cover