From 48e3d7ca9976ffe62b026663f9f6e19af6bc5f05 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Tue, 24 May 2011 10:41:54 +0000 Subject: [PATCH] * morituri/image/image.py: Actually set exception so MultiTask tells us what went wrong. --- ChangeLog | 5 +++++ morituri/image/image.py | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 29ff88d..e9b4994 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-05-24 Thomas Vander Stichele + + * morituri/image/image.py: + Actually set exception so MultiTask tells us what went wrong. + 2011-05-24 Thomas Vander Stichele * morituri/common/task.py: 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