* morituri/image/image.py:

Actually set exception so MultiTask tells us what went wrong.
This commit is contained in:
Thomas Vander Stichele
2011-05-24 10:41:54 +00:00
parent 114fb827cc
commit 48e3d7ca99
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
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:

View File

@@ -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