Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def instantiate_all_plugins(self):
##todo: check for plugin.name conflicts with existing plugins and reject plugin if already present
print 'instantiating plugins except for',settings.plugins_disabled
for plugin in pluginbase.Plugin.__subclasses__():
# try:
self.plugins[plugin.name]=[plugin(),plugin] if plugin.name not in settings.plugins_disabled else [None,plugin]
# except: