summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@gnome.org>2016-11-30 14:07:04 -0300
committerThibault Saunier <tsaunier@gnome.org>2016-12-02 12:32:18 -0300
commit6a138a955797af7629eaf5cf6d22018f9b6dc792 (patch)
tree9f71ab12005fca5065f2a2842241910c41e2084e
parentf53eafc4cf957f9b499b54f0b2324d949f1826b7 (diff)
downloadgstreamer-6a138a955797af7629eaf5cf6d22018f9b6dc792.tar.gz
validate:launcher: Handle missing media info file
-rw-r--r--validate/launcher/baseclasses.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/validate/launcher/baseclasses.py b/validate/launcher/baseclasses.py
index 25b215596b..100d1bc1d1 100644
--- a/validate/launcher/baseclasses.py
+++ b/validate/launcher/baseclasses.py
@@ -1773,7 +1773,10 @@ class GstValidateMediaDescriptor(MediaDescriptor):
if verbose:
printc("Result: Passed", Colors.OKGREEN)
- return GstValidateMediaDescriptor(descriptor_path)
+ try:
+ return GstValidateMediaDescriptor(descriptor_path)
+ except FileNotFoundError:
+ return None
def get_path(self):
return self._xml_path