Pass the whole exception through instead of just sys.exc_info? It also might be nice to remove the conditional and have a default for 'on_broken_plugin' that just calls raise.