[pitivi] check: Make the GstPluginDependency check on Gst more robust
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] check: Make the GstPluginDependency check on Gst more robust
- Date: Tue, 6 May 2014 13:02:07 +0000 (UTC)
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]