[pitivi] Loggable: Add a method for logging exceptions



commit 4265d1876be0d818484523fab46b257532ecced9
Author: Edward Hervey <bilboed bilboed com>
Date:   Thu Apr 16 11:37:24 2009 +0200

    Loggable: Add a method for logging exceptions
---
 pitivi/log/log.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/pitivi/log/log.py b/pitivi/log/log.py
index 78863b5..d9d5e1e 100644
--- a/pitivi/log/log.py
+++ b/pitivi/log/log.py
@@ -831,6 +831,9 @@ class Loggable:
 
         return None
 
+    def handleException(self, exc):
+        self.warning(getExceptionMessage(exc))
+
 # Twisted helper stuff
 
 # private stuff



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]