small changes in exception-handling

This commit is contained in:
JHCD 2015-06-14 20:35:04 +02:00
parent 97e87fcae2
commit 698416d66e

View file

@ -13,6 +13,7 @@ import logging # Global logger
import imp
import os
from ConfigParser import NoOptionError # we need this exception
from includes import globals # Global variables
def loadPlugins():
@ -61,8 +62,10 @@ def getPlugins():
logging.debug("Plugin [ENABLED ] %s", i)
else:
logging.debug("Plugin [DISABLED] %s ", i)
except: # no entry for plugin found in config-file
# no entry for plugin found in config-file
except NoOptionError:
logging.warning("Plugin [NO CONF ] %s", i)
pass
except:
logging.exception("Error during Plugin search")