[SCM] morituri/master: * morituri/image/image.py: Actually set exception so MultiTask tells us what went wrong.

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:09:27 UTC 2014


The following commit has been merged in the master branch:
commit 48e3d7ca9976ffe62b026663f9f6e19af6bc5f05
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Tue May 24 10:41:54 2011 +0000

    	* morituri/image/image.py:
    	  Actually set exception so MultiTask tells us what went wrong.

diff --git a/ChangeLog b/ChangeLog
index 29ff88d..e9b4994 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2011-05-24  Thomas Vander Stichele  <thomas at apestaart dot org>
 
+	* morituri/image/image.py:
+	  Actually set exception so MultiTask tells us what went wrong.
+
+2011-05-24  Thomas Vander Stichele  <thomas at apestaart dot org>
+
 	* morituri/common/task.py:
 	  Document and change name of a method.
 
diff --git a/morituri/image/image.py b/morituri/image/image.py
index c2167ad..ce0ebda 100644
--- a/morituri/image/image.py
+++ b/morituri/image/image.py
@@ -168,8 +168,9 @@ class AudioLengthTask(gstreamer.GstPipelineTask):
 
         try:
             length, qformat = sink.query_duration(self.gst.FORMAT_DEFAULT)
-        except self.gst.QueryError:
+        except self.gst.QueryError, e:
             self.info('failed to query duration of %r' % self._path)
+            self.setException(e)
             raise
 
         # wavparse 0.10.14 returns in bytes

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list