mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:45:19 +02:00
We're not mocking out plugins
So we don't need infrastructure for it
This commit is contained in:
+1
-3
@@ -1015,8 +1015,6 @@ def _handle_exception(exc_type, exc_value, trace, args):
|
||||
traceback.format_exception(exc_type, exc_value, trace)))
|
||||
|
||||
|
||||
# this copy of plugins can be mocked out
|
||||
plugins_testable = plugins_disco.PluginsRegistry.find_all
|
||||
def main(cli_args=sys.argv[1:]):
|
||||
"""Command line argument parsing and main script execution."""
|
||||
sys.excepthook = functools.partial(_handle_exception, args=None)
|
||||
@@ -1076,7 +1074,7 @@ def main(cli_args=sys.argv[1:]):
|
||||
# "{0}Root is required to run letsencrypt. Please use sudo.{0}"
|
||||
# .format(os.linesep))
|
||||
|
||||
return args.func(args, config, plugins_testable())
|
||||
return args.func(args, config, plugins)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user