aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-10-04 21:39:55 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-10-04 21:39:55 +0000
commitede88e3c8dfa89fd0a26138d91bd4cbf1a137c5e (patch)
tree48a295530714f2e227c9d6f77949a1fd425636d0 /lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade
parent95c18af0a727adb740ef83bb370bd46f0f19edd3 (diff)
downloadenigma2-ede88e3c8dfa89fd0a26138d91bd4cbf1a137c5e.tar.gz
enigma2-ede88e3c8dfa89fd0a26138d91bd4cbf1a137c5e.zip
add exception handling
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade')
-rw-r--r--lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/plugin.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/plugin.py b/lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/plugin.py
index 94c81c05..407f1ade 100644
--- a/lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/plugin.py
+++ b/lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/plugin.py
@@ -5,7 +5,10 @@ from Plugins.Plugin import PluginDescriptor
def getUpgradeVersion():
import os
- r = os.popen("fpupgrade --version").read()
+ try:
+ r = os.popen("fpupgrade --version").read()
+ except IOError:
+ return None
if r[:16] != "FP update tool v":
return None
else: