aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2007-05-04 14:16:30 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2007-05-04 14:16:30 +0000
commite04d72f060b1a8257bab955f6c0931989d546f99 (patch)
tree9bfc5fd10b94768ccee948abb475f38f50e1275c
parentbb28432a1586891f9edb791729d6027676e05231 (diff)
downloadmgarepo-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-xrepsys2
1 files changed, 1 insertions, 1 deletions
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