diff options
Diffstat (limited to 'repsys')
-rwxr-xr-x | repsys | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -69,10 +69,14 @@ 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__": + try: + plugins.load() + except Error, e: + sys.stderr.write("plugin initialization error: %s\n" % e) + sys.exit(1) do_command(parse_options, dispatch_command) # vim:et:ts=4:sw=4 |