diff options
author | Bogdano Arendartchuk <bogdano@mandriva.org> | 2007-05-04 14:16:30 +0000 |
---|---|---|
committer | Bogdano Arendartchuk <bogdano@mandriva.org> | 2007-05-04 14:16:30 +0000 |
commit | e04d72f060b1a8257bab955f6c0931989d546f99 (patch) | |
tree | 9bfc5fd10b94768ccee948abb475f38f50e1275c | |
parent | bb28432a1586891f9edb791729d6027676e05231 (diff) | |
download | mgarepo-e04d72f060b1a8257bab955f6c0931989d546f99.tar mgarepo-e04d72f060b1a8257bab955f6c0931989d546f99.tar.gz mgarepo-e04d72f060b1a8257bab955f6c0931989d546f99.tar.bz2 mgarepo-e04d72f060b1a8257bab955f6c0931989d546f99.tar.xz mgarepo-e04d72f060b1a8257bab955f6c0931989d546f99.zip |
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)
-rwxr-xr-x | repsys | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |