From 26e703779468dedc556d0fc67dac079cd68d8306 Mon Sep 17 00:00:00 2001 From: Peter Eckersley Date: Mon, 19 Oct 2015 12:15:11 -0700 Subject: [PATCH] Fix a mock type error --- letsencrypt/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/letsencrypt/cli.py b/letsencrypt/cli.py index dad486c2c..4368db7f7 100644 --- a/letsencrypt/cli.py +++ b/letsencrypt/cli.py @@ -1012,7 +1012,7 @@ def _handle_exception(exc_type, exc_value, trace, args): # this copy of plugins can be mocked out -plugins_testable = plugins_disco.PluginsRegistry.find_all() +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) @@ -1072,7 +1072,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_testable()) if __name__ == "__main__":