mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-01-03 07:09:59 +01:00
small changes in exception-handling
This commit is contained in:
parent
97e87fcae2
commit
698416d66e
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue