From 9e70e245167f1d1c7097b5ec2b8e4479ccf9c6cb Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Mon, 23 May 2011 18:24:08 +0000 Subject: [PATCH] add a repr to show GError --- morituri/common/gstreamer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/morituri/common/gstreamer.py b/morituri/common/gstreamer.py index 250206d..04ec955 100644 --- a/morituri/common/gstreamer.py +++ b/morituri/common/gstreamer.py @@ -28,6 +28,10 @@ class GstException(Exception): self.gerror = gerror self.debug = debug + def __repr__(self): + return '' % ( + self.gerror.message, self.debug) + class GstPipelineTask(task.Task): """ I am a base class for tasks that use a GStreamer pipeline.