diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-12-21 05:16:20 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-12-21 05:16:20 +0000 |
| commit | 7fe27f601f70eddb3019e22cbdb8388c05d3af7e (patch) | |
| tree | d387eeeb695859e97974104a26f0ae5b2f516767 /lib/python/Components | |
| parent | ccb8d260ed5e51f6f65205be04744a9e8322aa6f (diff) | |
| download | enigma2-7fe27f601f70eddb3019e22cbdb8388c05d3af7e.tar.gz enigma2-7fe27f601f70eddb3019e22cbdb8388c05d3af7e.zip | |
add a small ipkg upgrade plugin
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() |
