[pitivi] check: Make the GstPluginDependency check on Gst more robust



commit dcc321b11dc9072e9e8685dc4ae0e67c18445964
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Wed Apr 9 00:44:46 2014 +0200

    check: Make the GstPluginDependency check on Gst more robust

 pitivi/check.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/check.py b/pitivi/check.py
index 0d29956..ac23272 100644
--- a/pitivi/check.py
+++ b/pitivi/check.py
@@ -141,7 +141,10 @@ class GstPluginDependency(Dependency):
     Gst is importable.
     """
     def _try_importing_component(self):
-        from gi.repository import Gst
+        try:
+            from gi.repository import Gst
+        except ImportError:
+            return None
         Gst.init(None)
 
         registry = Gst.Registry.get()


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