diff options
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/PluginComponent.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/python/Components/PluginComponent.py b/lib/python/Components/PluginComponent.py index 26382063..f1a0a95a 100644 --- a/lib/python/Components/PluginComponent.py +++ b/lib/python/Components/PluginComponent.py @@ -27,7 +27,10 @@ class PluginComponent: return list def runPlugin(self, plugin, session): - exec "import " + self.prefix + plugin[2] - eval(self.prefix + plugin[2]).main(session) + try: + exec "import " + self.prefix + plugin[2] + eval(self.prefix + plugin[2]).main(session) + except: + print "exec of plugin failed!" plugins = PluginComponent() |
