From: Holger Schurig Date: Fri, 16 Apr 2010 08:48:32 +0000 (+0200) Subject: webber.py: stop if requested plugin cannot be loaded X-Git-Url: https://oss.titaniummirror.com/gitweb?p=webber.git;a=commitdiff_plain;h=02fd3bdd57de1e994b73d5e7ea0bb1576756369b webber.py: stop if requested plugin cannot be loaded --- diff --git a/webber.py b/webber.py index 350e9cf..73f9e73 100644 --- a/webber.py +++ b/webber.py @@ -339,11 +339,11 @@ def load_plugins(): sys.path.append(os.path.join(get_program_directory(), "plugins")) for s in cfg.plugins: #print "import:", s - #try: - exec "import %s" % s - #except: - # print "Could not import plugin '%s'" % s - # sys.exit(1) + try: + exec "import %s" % s + except: + print "Could not import plugin '%s'" % s + sys.exit(1) def set_hook(name, last=False):