From e04d72f060b1a8257bab955f6c0931989d546f99 Mon Sep 17 00:00:00 2001 From: Bogdano Arendartchuk Date: Fri, 4 May 2007 14:16:30 +0000 Subject: Handle plugin initialization exceptions Moved plugins.load() to dispatch_command in order to allow exception handling when plugins are being loaded (in case of ldapusers, checking configuration options) --- repsys | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repsys b/repsys index c2f18f4..baf015f 100755 --- a/repsys +++ b/repsys @@ -69,10 +69,10 @@ def dispatch_command(command, argv, debug=0): traceback.print_exc() sys.exit(1) raise Error, "invalid command '%s'" % command + plugins.load() command_module.main() if __name__ == "__main__": - plugins.load() do_command(parse_options, dispatch_command) # vim:et:ts=4:sw=4 -- cgit v1.2.1