[gnome-builder] phpize: don't unnecessarily raise runtime error



commit a1e30dda95681fd35ae4dec9a98def5bf8a75262
Author: Christian Hergert <chergert redhat com>
Date:   Tue Mar 14 19:21:47 2017 -0700

    phpize: don't unnecessarily raise runtime error

 plugins/phpize/phpize_plugin.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/phpize/phpize_plugin.py b/plugins/phpize/phpize_plugin.py
index 230c392..c37dc21 100644
--- a/plugins/phpize/phpize_plugin.py
+++ b/plugins/phpize/phpize_plugin.py
@@ -171,10 +171,10 @@ class PHPizeBuildSystemDiscovery(GObject.Object, Ide.BuildSystemDiscovery):
                 stream = open(config_m4.get_path(), encoding='UTF-8')
                 if 'PHP_ARG_ENABLE' in stream.read():
                     return ('phpize', 1000)
-        except Exception as ex:
-            print(repr(ex))
+        except:
+            pass
 
-        raise RuntimeError("Not a phpize build system")
+        return (None, 0)
 
 class PHPizeBuildPipelineAddin(Ide.Object, Ide.BuildPipelineAddin):
     """


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]