add exception handling
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 4 Oct 2007 21:39:55 +0000 (21:39 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 4 Oct 2007 21:39:55 +0000 (21:39 +0000)
lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/plugin.py

index 94c81c0..407f1ad 100644 (file)
@@ -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: